diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-12-22 10:18:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-22 10:18:38 +0100 |
commit | 194ebc3da9641ff96f083f9d8ab43c2d27944f9a (patch) | |
tree | c50988f32ccf18df93ae7ab40be78e9459642818 /lib/modifiers/config/__tests__/removePlugin.js | |
parent | 64ccb6b00b4b63fa0e516d4e35351275b34f8c07 (diff) | |
parent | 16af264360e48e8a833e9efa9ab8d194574dbc70 (diff) | |
download | gitbook-194ebc3da9641ff96f083f9d8ab43c2d27944f9a.zip gitbook-194ebc3da9641ff96f083f9d8ab43c2d27944f9a.tar.gz gitbook-194ebc3da9641ff96f083f9d8ab43c2d27944f9a.tar.bz2 |
Merge pull request #1543 from GitbookIO/dream
React for rendering website with plugins
Diffstat (limited to 'lib/modifiers/config/__tests__/removePlugin.js')
-rw-r--r-- | lib/modifiers/config/__tests__/removePlugin.js | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/lib/modifiers/config/__tests__/removePlugin.js b/lib/modifiers/config/__tests__/removePlugin.js deleted file mode 100644 index 253cc39..0000000 --- a/lib/modifiers/config/__tests__/removePlugin.js +++ /dev/null @@ -1,33 +0,0 @@ -var removePlugin = require('../removePlugin'); -var Config = require('../../../models/config'); - -describe('removePlugin', function() { - var config = Config.createWithValues({ - plugins: ['hello', 'world', '-disabled'] - }); - - it('should remove the plugin from the list', function() { - var newConfig = removePlugin(config, 'hello'); - - var testDep = newConfig.getPluginDependency('hello'); - expect(testDep).toNotBeDefined(); - }); - - it('should remove the disabled plugin from the list', function() { - var newConfig = removePlugin(config, 'disabled'); - - var testDep = newConfig.getPluginDependency('disabled'); - expect(testDep).toNotBeDefined(); - }); - - it('should disable default plugin', function() { - var newConfig = removePlugin(config, 'search'); - - var disabledDep = newConfig.getPluginDependency('search'); - expect(disabledDep).toBeDefined(); - expect(disabledDep.getVersion()).toEqual('*'); - expect(disabledDep.isEnabled()).toBeFalsy(); - }); -}); - - |