From 8984be5c3ed45a53cd342a8f43994e647c6f894d Mon Sep 17 00:00:00 2001 From: Jiiks Date: Tue, 13 Feb 2018 18:26:20 +0200 Subject: [PATCH] add a import test --- tests/plugins/Example/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/plugins/Example/index.js b/tests/plugins/Example/index.js index 0693e9ac..f13d220d 100644 --- a/tests/plugins/Example/index.js +++ b/tests/plugins/Example/index.js @@ -8,6 +8,9 @@ module.exports = (Plugin, Api, Vendor) => { Events.subscribe('TEST_EVENT', this.eventTest); Logger.log('onStart'); Logger.log(`Setting "default-0" value: ${this.getSetting('default-0')}`); + + const exampleModule = new (Api.import('Example Module')); + Logger.log(`2+4=${exampleModule.add(2, 4)}`); return true; }