Skip to content

Commit 68fd729

Browse files
committed
Fix more tests
1 parent ec2c33d commit 68fd729

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/precomputed-requestor.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ describe('PrecomputedRequestor', () => {
9494

9595
// TODO: create a method get format from the response
9696
expect(fetchSpy).toHaveBeenCalledTimes(1);
97-
const response = await fetchSpy.mock.results[0].value.json();
97+
const response = await (await fetchSpy.mock.results[0].value).json();
9898
expect(response.format).toBe('PRECOMPUTED');
9999

100-
expect(precomputedFlagStore.getEnvironment()).toBe({ name: 'production' });
100+
expect(precomputedFlagStore.getEnvironment()).toStrictEqual({ name: 'production' });
101101
expect(precomputedFlagStore.getConfigPublishedAt()).toBe('2024-03-20T00:00:00Z');
102102
});
103103

0 commit comments

Comments
 (0)