Skip to content

Commit cb465fb

Browse files
committed
test: eslint-plugin-putout: configs
1 parent a508678 commit cb465fb

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

packages/eslint-plugin-putout/test/exports.mjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import {test} from 'supertape';
22

3+
const {keys} = Object;
4+
35
test('eslint-plugin-putout: exports: rules', async (t) => {
46
const {rules} = await import('eslint-plugin-putout');
57
const internal = await import('../lib/index.mjs');
@@ -15,3 +17,19 @@ test('eslint-plugin-putout: exports: default', async (t) => {
1517
t.equal(result.default, internal);
1618
t.end();
1719
});
20+
21+
test('eslint-plugin-putout: exports: configs', async (t) => {
22+
const {configs} = await import('eslint-plugin-putout');
23+
const result = keys(configs);
24+
25+
const expected = [
26+
'recommended',
27+
'jsx',
28+
'safe',
29+
'safeAlign',
30+
'esm',
31+
];
32+
33+
t.deepEqual(result, expected);
34+
t.end();
35+
});

0 commit comments

Comments
 (0)