From 49aad9777ea6082e0047d026261ea7978ebbb162 Mon Sep 17 00:00:00 2001 From: Golda Velez Date: Mon, 11 Sep 2023 15:19:03 -0700 Subject: [PATCH] remove duplicate coverage test --- .../__tests__/anchor-request-params-parser.test.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/ancillary/__tests__/anchor-request-params-parser.test.ts b/src/ancillary/__tests__/anchor-request-params-parser.test.ts index 3a2b82813..67cc95d3a 100644 --- a/src/ancillary/__tests__/anchor-request-params-parser.test.ts +++ b/src/ancillary/__tests__/anchor-request-params-parser.test.ts @@ -78,14 +78,6 @@ const CAR_FILE_INVALID = mockRequest({ }) -const CAR_FILE_NOT_BASE64URL = mockRequest({ - headers: { - 'Content-Type': 'application/vnd.ipld.car', - }, - body: '----------------------------------------', -}) - - const CAR_FILE_FAKE_GENESIS_FIELDS: GenesisFields = { controllers: [asDIDString('did:pkh:eip155:1:0x926eeb192c18b7be607a7e10c8e7a7e8d9f70742')], model: StreamID.fromBytes( @@ -141,9 +133,4 @@ describe('AnchoRequestParamsParser', () => { expect(isLeft(validation)).toBeTruthy() }) - test('throws error if cannot decode car file', () => { - const validation = parser.parse(CAR_FILE_NOT_BASE64URL as ExpReq) - console.log("a string of dashes, turns to " + JSON.stringify(validation)) - expect(() => parser.parse(CAR_FILE_NOT_BASE64URL as ExpReq)).toThrow(/^Can not decode CAR file/); - }) })