mirror of
https://github.com/graphql-hive/console
synced 2026-05-24 09:38:26 +00:00
Update usage.spec.ts
This commit is contained in:
parent
e899872601
commit
9e7f00ad0c
1 changed files with 2 additions and 2 deletions
|
|
@ -186,7 +186,7 @@ test('should send data to Hive', async () => {
|
|||
expect(operation.operationMapKey).toEqual(key);
|
||||
expect(operation.timestamp).toEqual(expect.any(Number));
|
||||
// execution
|
||||
expect(operation.execution.duration).toBeGreaterThanOrEqual(2000 * 1_000_000); // >=2000ms in microseconds
|
||||
expect(operation.execution.duration).toBeGreaterThanOrEqual(1500 * 1_000_000); // >=1500ms in microseconds
|
||||
expect(operation.execution.duration).toBeLessThan(3000 * 1_000_000); // <3000ms
|
||||
expect(operation.execution.errorsTotal).toBe(0);
|
||||
expect(operation.execution.errors).toHaveLength(0);
|
||||
|
|
@ -282,7 +282,7 @@ test('should send data to Hive (deprecated endpoint)', async () => {
|
|||
expect(operation.operationMapKey).toEqual(key);
|
||||
expect(operation.timestamp).toEqual(expect.any(Number));
|
||||
// execution
|
||||
expect(operation.execution.duration).toBeGreaterThanOrEqual(2000 * 1_000_000); // >=2000ms in microseconds
|
||||
expect(operation.execution.duration).toBeGreaterThanOrEqual(1500 * 1_000_000); // >=1500ms in microseconds
|
||||
expect(operation.execution.duration).toBeLessThan(3000 * 1_000_000); // <3000ms
|
||||
expect(operation.execution.errorsTotal).toBe(0);
|
||||
expect(operation.execution.errors).toHaveLength(0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue