diff --git a/src/lib/features/traffic-data-usage/traffic-data-usage-store.test.ts b/src/lib/features/traffic-data-usage/traffic-data-usage-store.test.ts index aa58b8bb5c..0a8aaf3795 100644 --- a/src/lib/features/traffic-data-usage/traffic-data-usage-store.test.ts +++ b/src/lib/features/traffic-data-usage/traffic-data-usage-store.test.ts @@ -246,13 +246,7 @@ test('can query for monthly aggregation of data for a specified range', async () new Date(entry.month), ); const expectedCount = expectedValues[index]; - - expect(entry).toMatchObject({ - statusCodeSeries: 200, - trafficGroup: expect.stringMatching(/group(A|B)/), - month: expect.stringMatching(/\d{4}-\d{2}/), - count: expectedCount[entry.trafficGroup], - }); + expect(entry.count).toBe(expectedCount[entry.trafficGroup]); } } });