Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fgatti675 committed Apr 11, 2022
1 parent f5d4324 commit 9dfd9d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/firestore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ it("timestamp conversion", () => {

const timestamp = Timestamp.now();
const date = timestamp.toDate();
expect(firestoreToCMSModel({ created_at: timestamp }, schema, "any")
expect(firestoreToCMSModel({ created_at: timestamp })
).toEqual({ created_at: date });
});

Expand All @@ -43,7 +43,7 @@ it("timestamp array conversion", () => {
const date = timestamp.toDate();

expect(
firestoreToCMSModel({ my_array: [timestamp] }, schema as ResolvedEntitySchema<any>, "any")
firestoreToCMSModel({ my_array: [timestamp] })
).toEqual({ my_array: [date] });

});
Expand Down

0 comments on commit 9dfd9d0

Please sign in to comment.