mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
* Add syntactic support for tags - #412 * Add the very first test 🎉 * Simplify multiple assertions into one
22 lines
708 B
JavaScript
22 lines
708 B
JavaScript
require('../setup');
|
|
|
|
const {_toDependencies} = require('../../app/plugins');
|
|
|
|
describe('plugins', function () {
|
|
describe('#toDependencies()', function () {
|
|
it('should convert dependencies form hyperterm\'s format to npm\'s', function () {
|
|
const plugins = ['project1', 'project2#1.0.0', 'project3@beta',
|
|
'@org1/project4#1.0.0', '@org2/project5@alpha',
|
|
'@org3/project6'];
|
|
|
|
_toDependencies({plugins: plugins}).should.be.eql({
|
|
'project1': 'latest',
|
|
'project2': '1.0.0',
|
|
'project3': 'beta',
|
|
'@org1/project4': '1.0.0',
|
|
'@org2/project5': 'alpha',
|
|
'@org3/project6': 'latest'
|
|
});
|
|
});
|
|
});
|
|
});
|