Skip to content

Commit

Permalink
Only test JSON files
Browse files Browse the repository at this point in the history
  • Loading branch information
muan committed Mar 28, 2024
1 parent 574b14c commit f30412f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const files = fs.readdirSync('dist')
const expectedKeys = require('unicode-emoji-json/data-ordered-emoji.json')

for (const path of files) {
if (!path.endsWith('.json')) continue
test(`checking dist/${path}`, {objectPrintDepth: 1}, t => {
const content = require(`../dist/${path}`)
const containedKeys = Object.keys(content)
Expand Down

0 comments on commit f30412f

Please sign in to comment.