diff --git a/tests/plugins/Example 2/config.json b/tests/plugins/Example 2/config.json new file mode 100644 index 00000000..9273656f --- /dev/null +++ b/tests/plugins/Example 2/config.json @@ -0,0 +1,12 @@ +{ + "info": { + "name": "Example Plugin 2", + "authors": ["Jiiks"], + "version": 1.0, + "description": "Example Plugin 2 Description" + }, + "main": "index.js", + "defaultConfig": { + "foo": "bar" + } +} \ No newline at end of file diff --git a/tests/plugins/Example 2/index.js b/tests/plugins/Example 2/index.js new file mode 100644 index 00000000..251f81a2 --- /dev/null +++ b/tests/plugins/Example 2/index.js @@ -0,0 +1,18 @@ +module.exports = (Plugin, Api, Vendor) => { + + const { $, moment } = Vendor; + const { Events } = Api; + + const test = 'Testing'; + + return class extends Plugin { + test() { + return test; + } + + onStart() { + console.log('On Start!'); + } + } + +} \ No newline at end of file diff --git a/tests/plugins/Example/config.json b/tests/plugins/Example/config.json index d75e387d..3bfcc1dd 100644 --- a/tests/plugins/Example/config.json +++ b/tests/plugins/Example/config.json @@ -2,7 +2,8 @@ "info": { "name": "Example Plugin", "authors": ["Jiiks"], - "version": 1.0 + "version": 1.0, + "description": "Example Plugin Description" }, "main": "index.js", "defaultConfig": {