Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit aa0d43f

Browse files
committed
Fix rules test output in mocha
1 parent a7a6348 commit aa0d43f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/rules-test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ function testRules() {
1515
return
1616
}
1717

18-
const lines = fs.readFileSync(path.join(rulesDir, file), { encoding: 'utf-8' }).split('\n')
19-
runAssertions(buildData(lines))
18+
it(file.slice(0, -5).split('_').join(' '), () => {
19+
const lines = fs.readFileSync(path.join(rulesDir, file), { encoding: 'utf-8' }).split('\n')
20+
runAssertions(buildData(lines))
21+
})
2022
})
2123
}
2224

0 commit comments

Comments
 (0)