Skip to content

Commit 8b7c3f2

Browse files
committed
Fix tests
1 parent a86219b commit 8b7c3f2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

packages/firestore/test/unit/util/assert.test.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ import { fail, hardAssert } from '../../../src/util/assert';
2121

2222
describe('hardAssert', () => {
2323
it('includes the error code as hex', () => {
24-
expect(() => hardAssert(false, 0x1234, 'a message here')).to.throw(
25-
'12345678'
26-
);
24+
expect(() => hardAssert(false, 0x1234, 'a message here')).to.throw('1234');
2725
});
2826

2927
it('includes the context', () => {
@@ -40,7 +38,7 @@ describe('hardAssert', () => {
4038

4139
describe('without message', () => {
4240
it('includes the error code as hex', () => {
43-
expect(() => hardAssert(false, 0x1234)).to.throw('12345678');
41+
expect(() => hardAssert(false, 0x1234)).to.throw('1234');
4442
});
4543

4644
it('includes the context', () => {
@@ -58,7 +56,7 @@ describe('hardAssert', () => {
5856

5957
describe('fail', () => {
6058
it('includes the error code as hex', () => {
61-
expect(() => fail(0x1234, 'a message here')).to.throw('12345678');
59+
expect(() => fail(0x1234, 'a message here')).to.throw('1234');
6260
});
6361

6462
it('includes the context', () => {
@@ -75,7 +73,7 @@ describe('fail', () => {
7573

7674
describe('without message', () => {
7775
it('includes the error code as hex', () => {
78-
expect(() => fail(0x1234)).to.throw('12345678');
76+
expect(() => fail(0x1234)).to.throw('1234');
7977
});
8078

8179
it('includes the context', () => {

0 commit comments

Comments
 (0)