-
-
Notifications
You must be signed in to change notification settings - Fork 211
Expand file tree
/
Copy pathplugin-exports.js
More file actions
31 lines (28 loc) · 994 Bytes
/
plugin-exports.js
File metadata and controls
31 lines (28 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
'use strict';
const plugin = require('../lib');
const ember = require('../lib/utils/ember');
const base = require('../lib/config-legacy/base');
const recommended = require('../lib/config-legacy/recommended');
const recommendedGjs = require('../lib/config-legacy/recommended-gjs');
const recommendedGts = require('../lib/config-legacy/recommended-gts');
const strictGjs = require('../lib/config-legacy/strict-gjs');
const strictGts = require('../lib/config-legacy/strict-gts');
describe('plugin exports', () => {
describe('utils', () => {
it('has the right util functions', () => {
expect(plugin.utils).toStrictEqual({ ember });
});
});
describe('configs', () => {
it('has the right configurations', () => {
expect(plugin.configs).toStrictEqual({
base,
recommended,
'recommended-gjs': recommendedGjs,
'recommended-gts': recommendedGts,
'strict-gjs': strictGjs,
'strict-gts': strictGts,
});
});
});
});