1
0
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:
Thomas Heartman 2025-01-22 09:04:15 +01:00
parent 648fc6079c
commit 158b877378
No known key found for this signature in database
GPG Key ID: BD1F880DAED1EE78

View File

@ -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]);
}
}
});