summaryrefslogtreecommitdiffstats
path: root/lib/plugins/__tests__/resolveVersion.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-09-05 11:04:18 +0200
committerSamy Pessé <samypesse@gmail.com>2016-09-05 11:04:18 +0200
commita14ca3e268e95a7eab59fb205b41da7331d57631 (patch)
tree9c84b2cbd561345335fca3e26af961b2ea23d8ec /lib/plugins/__tests__/resolveVersion.js
parent9c071dade573aa6990878006f83c89b6065a1395 (diff)
downloadgitbook-a14ca3e268e95a7eab59fb205b41da7331d57631.zip
gitbook-a14ca3e268e95a7eab59fb205b41da7331d57631.tar.gz
gitbook-a14ca3e268e95a7eab59fb205b41da7331d57631.tar.bz2
Switch to lerna
Diffstat (limited to 'lib/plugins/__tests__/resolveVersion.js')
-rw-r--r--lib/plugins/__tests__/resolveVersion.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/plugins/__tests__/resolveVersion.js b/lib/plugins/__tests__/resolveVersion.js
deleted file mode 100644
index 1877c9e..0000000
--- a/lib/plugins/__tests__/resolveVersion.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var PluginDependency = require('../../models/pluginDependency');
-var resolveVersion = require('../resolveVersion');
-
-describe('resolveVersion', function() {
- it('must skip resolving and return non-semver versions', function() {
- var plugin = PluginDependency.createFromString('ga@git+ssh://samy@github.com/GitbookIO/plugin-ga.git');
-
- return resolveVersion(plugin)
- .then(function(version) {
- expect(version).toBe('git+ssh://samy@github.com/GitbookIO/plugin-ga.git');
- });
- });
-
- it('must resolve a normal plugin dependency', function() {
- var plugin = PluginDependency.createFromString('ga@>0.9.0 < 1.0.1');
-
- return resolveVersion(plugin)
- .then(function(version) {
- expect(version).toBe('1.0.0');
- });
- });
-});