mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
* Bump `eslint-plugin-react`
* Add `eslint-config-xo-react`
* Add XO
* Remove eslint-related dependencies, add XO config and use XO as the linter
* Code style: Standard => XO ✨
* Use xo property to ignore files
* Fix remaining errors
23 lines
742 B
JavaScript
23 lines
742 B
JavaScript
/* eslint-disable prefer-arrow-callback */
|
|
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}).should.be.eql({
|
|
'project1': 'latest',
|
|
'project2': '1.0.0',
|
|
'project3': 'beta',
|
|
'@org1/project4': '1.0.0',
|
|
'@org2/project5': 'alpha',
|
|
'@org3/project6': 'latest'
|
|
});
|
|
});
|
|
});
|
|
});
|