Skip to content

Commit 1ffdbd3

Browse files
committed
chore: fix bug in tests only for Safari Mobile 11.x
1 parent b7ccf7e commit 1ffdbd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/__tests__/fs.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ describe("fs module", () => {
6767
expect(err).toBe(null);
6868
fs.readFile("/readFile/readFile-uint8.txt", (err, data) => {
6969
expect(err).toBe(null);
70-
expect(data).toEqual(HELLO);
70+
// instanceof comparisons on Uint8Array's retrieved from IDB are broken in Safari Mobile 11.x (source: https://github.com/dfahlander/Dexie.js/issues/656#issuecomment-391866600)
71+
expect([...data]).toEqual([...HELLO]);
7172
done();
7273
});
7374
});

0 commit comments

Comments
 (0)