Skip to content

Commit c57dde1

Browse files
authored
test: fix bidi_mirroring_glyph test (#82)
* test: fix bidi_mirroring_glyph test * test: sort entries by codepoint
1 parent 9ab919e commit c57dde1

File tree

2 files changed

+1717
-4
lines changed

2 files changed

+1717
-4
lines changed

tests/tests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ suite(`The generated latest Unicode js`, () => {
6262
)
6363
});
6464
test("Bidi_Mirroring_Glyph should match the snapshot", (t) => {
65-
t.assert.snapshot(
66-
require('../output/unicode-' + newest + '/Bidi_Mirroring_Glyph/index.js')
67-
);
65+
const map = require('../output/unicode-' + newest + '/Bidi_Mirroring_Glyph/index.js');
66+
const mapEntries = [...map.entries()].sort((a, b) => a[0] - b[0]);
67+
t.assert.snapshot(mapEntries);
6868
});
6969
test("Bidi_Paired_Bracket_Type/Open should match the snapshot", (t) => {
7070
t.assert.snapshot(

0 commit comments

Comments
 (0)