summaryrefslogtreecommitdiffstats
path: root/lib/modifiers/config/__tests__/addPlugin.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/modifiers/config/__tests__/addPlugin.js')
-rw-r--r--lib/modifiers/config/__tests__/addPlugin.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/lib/modifiers/config/__tests__/addPlugin.js b/lib/modifiers/config/__tests__/addPlugin.js
deleted file mode 100644
index 61082c9..0000000
--- a/lib/modifiers/config/__tests__/addPlugin.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var addPlugin = require('../addPlugin');
-var Config = require('../../../models/config');
-
-describe('addPlugin', function() {
- var config = Config.createWithValues({
- plugins: ['hello', 'world', '-disabled']
- });
-
- it('should have correct state of dependencies', function() {
- var disabledDep = config.getPluginDependency('disabled');
-
- expect(disabledDep).toBeDefined();
- expect(disabledDep.getVersion()).toEqual('*');
- expect(disabledDep.isEnabled()).toBeFalsy();
- });
-
- it('should add the plugin to the list', function() {
- var newConfig = addPlugin(config, 'test');
-
- var testDep = newConfig.getPluginDependency('test');
- expect(testDep).toBeDefined();
- expect(testDep.getVersion()).toEqual('*');
- expect(testDep.isEnabled()).toBeTruthy();
-
- var disabledDep = newConfig.getPluginDependency('disabled');
- expect(disabledDep).toBeDefined();
- expect(disabledDep.getVersion()).toEqual('*');
- expect(disabledDep.isEnabled()).toBeFalsy();
- });
-});
-
-