From 7e49ee1da33e57b24d411c42794e48fa700a8f28 Mon Sep 17 00:00:00 2001 From: Ilana Shapiro Date: Thu, 22 Aug 2024 10:58:25 -0700 Subject: [PATCH] remove unnecessary test about ignoreExamples and seed --- .../src/__tests__/server.oas.spec.ts | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/packages/http-server/src/__tests__/server.oas.spec.ts b/packages/http-server/src/__tests__/server.oas.spec.ts index 7bd74530b..0b6758761 100644 --- a/packages/http-server/src/__tests__/server.oas.spec.ts +++ b/packages/http-server/src/__tests__/server.oas.spec.ts @@ -200,7 +200,7 @@ describe('Ignore examples', () => { beforeAll(async () => { server = await instantiatePrism(resolve(__dirname, 'fixtures', 'ignore-examples.oas3.yaml'), { - mock: { dynamic: false, ignoreExamples: true, seed: "test_seed"}, + mock: { dynamic: false, ignoreExamples: true }, }); }); @@ -242,24 +242,6 @@ describe('Ignore examples', () => { expect(hasPropertiesOfType(payload, schema)).toBe(true); expect(payload.name).not.toBe('doggie'); }); - - describe('and since a seed was set', () => { - describe('if I hit the same endpoint twice', () => { - let payload: unknown; - let secondPayload: unknown; - - beforeAll(async () => { - payload = await fetch(new URL('/no_auth/pets?name=joe', server.address), { method: 'GET' }).then(r => - r.json() - ); - secondPayload = await fetch(new URL('/no_auth/pets?name=joe', server.address), { method: 'GET' }).then(r => - r.json() - ); - }); - - it('should return the same object', () => expect(payload).toStrictEqual(secondPayload)); - }); - }); }); }); });