Skip to content

Commit

Permalink
chore: test emoji exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Yizack committed Apr 2, 2024
1 parent 69e51cf commit c3450ad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/generated.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { describe, it, expect } from 'vitest'
import * as emojis from '../src/runtime/assets/emojis'

describe('Generated emoji exports', () => {
it('Format of all emoji exports', () => {
for (const emoji of Object.values(emojis)) {
expect(emoji.name).toMatch(/^[a-zA-Z0-9-]+$/)
}
})
})

0 comments on commit c3450ad

Please sign in to comment.