summaryrefslogtreecommitdiffstats
path: root/lib/plugins/__tests__/resolveVersion.js
blob: 164611fc6d85ae242bec8d1f409ad6bf22df9967 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var PluginDependency = require('../../models/pluginDependency');
var resolveVersion = require('../resolveVersion');

describe('resolveVersion', function() {
    it('must skip resolving and return non-semver versions', function(done) {
        var plugin = PluginDependency.createFromString('plugin-ga@git+ssh://samy@github.com/GitbookIO/plugin-ga.git');

        resolveVersion(plugin)
        .then(function(version) {
            expect(version).toBe('git+ssh://samy@github.com/GitbookIO/plugin-ga.git');
            done();
        });
    });
});