mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-31 00:16:47 +01:00
feat(1-3260): nah, make the test simpler again.
This commit is contained in:
parent
648fc6079c
commit
158b877378
@ -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]);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user