diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-05-02 22:02:24 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-05-02 22:02:24 +0200 |
commit | 30c96c37c2145a28710e2875c677d37156fdaa92 (patch) | |
tree | 1835c91e04ef3fdbc0fbca45b4a3aa1f4dcfca35 /lib/models/__tests__/pluginDependency.js | |
parent | 20f1cf3dff685ead53c85a9cd751ae9dacea7289 (diff) | |
download | gitbook-30c96c37c2145a28710e2875c677d37156fdaa92.zip gitbook-30c96c37c2145a28710e2875c677d37156fdaa92.tar.gz gitbook-30c96c37c2145a28710e2875c677d37156fdaa92.tar.bz2 |
Adapt Plugin.listAll to use a list of PluginDependency
Diffstat (limited to 'lib/models/__tests__/pluginDependency.js')
-rw-r--r-- | lib/models/__tests__/pluginDependency.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/models/__tests__/pluginDependency.js b/lib/models/__tests__/pluginDependency.js index 70f643b..8aa55fb 100644 --- a/lib/models/__tests__/pluginDependency.js +++ b/lib/models/__tests__/pluginDependency.js @@ -30,13 +30,13 @@ describe('PluginDependency', function() { describe('GIT Version', function() { it('must handle HTTPS urls', function() { - var plugin = PluginDependency.createFromString('hello@', 'great@git+https://github.com/GitbookIO/plugin-ga.git'); + var plugin = PluginDependency.createFromString('hello@git+https://github.com/GitbookIO/plugin-ga.git'); expect(plugin.getName()).toBe('hello'); expect(plugin.getVersion()).toBe('git+https://github.com/GitbookIO/plugin-ga.git'); }); it('must handle SSH urls', function() { - var plugin = PluginDependency.createFromString('hello@', 'great@git+ssh://samy@github.com/GitbookIO/plugin-ga.git'); + var plugin = PluginDependency.createFromString('hello@git+ssh://samy@github.com/GitbookIO/plugin-ga.git'); expect(plugin.getName()).toBe('hello'); expect(plugin.getVersion()).toBe('git+ssh://samy@github.com/GitbookIO/plugin-ga.git'); }); |