Skip to content

Commit

Permalink
remove duplicate coverage test
Browse files Browse the repository at this point in the history
  • Loading branch information
gvelez17 committed Sep 11, 2023
1 parent 491e354 commit 49aad97
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/ancillary/__tests__/anchor-request-params-parser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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/);
})
})

0 comments on commit 49aad97

Please sign in to comment.