File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
packages/eslint-plugin-putout/test Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 11import { test } from 'supertape' ;
22
3+ const { keys} = Object ;
4+
35test ( '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+ } ) ;
You can’t perform that action at this time.
0 commit comments