From 87f74ab10c529ed31400fbe36374296c68a1bd89 Mon Sep 17 00:00:00 2001 From: Benjamin Beret Date: Thu, 11 Jul 2024 17:36:35 +0200 Subject: [PATCH] Fix failing tests --- src/Airspace/retrieveAUP.test.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Airspace/retrieveAUP.test.ts b/src/Airspace/retrieveAUP.test.ts index 20693cd..8aacff6 100644 --- a/src/Airspace/retrieveAUP.test.ts +++ b/src/Airspace/retrieveAUP.test.ts @@ -1,9 +1,8 @@ +import { assert, beforeAll, describe, expect, test } from 'vitest'; import { makeAirspaceClient } from '..'; -import { sub } from 'date-fns'; import b2bOptions from '../../tests/options'; -import type { AUPSummary } from './types'; import { shouldUseRealB2BConnection } from '../../tests/utils'; -import { describe, beforeAll, test, expect, assert } from 'vitest'; +import type { AUPSummary } from './types'; describe('retrieveAUP', async () => { const Airspace = await makeAirspaceClient(b2bOptions); @@ -13,7 +12,7 @@ describe('retrieveAUP', async () => { // Find some AUP id const res = await Airspace.retrieveAUPChain({ amcIds: ['LFFAZAMC'], - chainDate: sub(new Date(), { days: 1 }), + chainDate: new Date(), }); // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- TODO: Check if this condition is necessary ?