Skip to content

Commit

Permalink
fix: only use BigInt in BigInt system test (#1044)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidt-sebastian authored Apr 24, 2020
1 parent 9459fec commit 2ea3040
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dev/system-test/firestore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('Firestore class', () => {
let randomCol: CollectionReference;

beforeEach(() => {
firestore = new Firestore({});
firestore = new Firestore();
randomCol = getTestRoot(firestore);
});

Expand Down Expand Up @@ -259,7 +259,7 @@ describe('DocumentReference class', () => {
let randomCol: CollectionReference;

beforeEach(() => {
firestore = new Firestore({useBigInt: true});
firestore = new Firestore();
randomCol = getTestRoot(firestore);
});

Expand Down Expand Up @@ -360,6 +360,9 @@ describe('DocumentReference class', () => {

it('round-trips BigInts', () => {
const bigIntValue = BigInt(Number.MAX_SAFE_INTEGER) + BigInt(1);

const firestore = new Firestore({useBigInt: true});
const randomCol = getTestRoot(firestore);
const ref = randomCol.doc('doc');
return ref
.set({bigIntValue})
Expand Down

0 comments on commit 2ea3040

Please sign in to comment.