Skip to content

Commit 33ec5b5

Browse files
committedApr 22, 2024··
update config test
1 parent b2ed63b commit 33ec5b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎tests/config.spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('recommended config', () => {
2828
})
2929
})
3030

31-
describe('recommended plugin', () => {
31+
describe('plugin configs', () => {
3232
const ruleFiles: readonly string[] = readdirSync('./src/rules').filter(
3333
file => file !== 'index.ts' && file.endsWith('.ts'),
3434
)
@@ -38,8 +38,8 @@ describe('recommended plugin', () => {
3838
expect(Object.keys(plugin.rules)).toHaveLength(ruleFiles.length)
3939
})
4040

41-
it('should have the recommended config', () => {
41+
it('should have the recommended & requiredFirst configs', () => {
4242
expect(plugin).toHaveProperty('configs')
43-
expect(Object.keys(plugin.configs)).toHaveLength(1)
43+
expect(Object.keys(plugin.configs)).toHaveLength(2)
4444
})
4545
})

0 commit comments

Comments
 (0)
Please sign in to comment.