From f2a3ad27e2c2824984e01c4d2c84d2ba0f9c74ce Mon Sep 17 00:00:00 2001 From: Golda Velez Date: Mon, 23 Oct 2023 21:28:52 -0700 Subject: [PATCH] somehow we dropped a test? put it back --- .../__tests__/anchor-request-params-parser.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ancillary/__tests__/anchor-request-params-parser.test.ts b/src/ancillary/__tests__/anchor-request-params-parser.test.ts index 30dc2b171..e96714780 100644 --- a/src/ancillary/__tests__/anchor-request-params-parser.test.ts +++ b/src/ancillary/__tests__/anchor-request-params-parser.test.ts @@ -42,6 +42,15 @@ const LEGACY_REQUEST_EXAMPLE = mockRequest({ }, }) +const CAR_FILE_REQUEST_EXAMPLE_SIGNED_GENESIS = mockRequest({ + headers: { + 'Content-Type': 'application/vnd.ipld.car', + }, + body: bases['base64url'].decode( + 'uOqJlcm9vdHOB2CpYJQABcRIgT3FJQeLnnsO6MIl-uaKoEEMtWOoRWLryBIeDtpDEfLVndmVyc2lvbgGpAQFxEiBPcUlB4ueew7owiX65oqgQQy1Y6hFYuvIEh4O2kMR8taNjdGlw2CpYJgABhQESIGyfyb7xASv7lhnodKvJO_vKW09AOfRy5nyhDVnkXuCSaHN0cmVhbUlkWCfOAQMBcRIgziTbUSGEnXjdjPt90kN--q4Z4KTF--6RBDWym0xKS9dpdGltZXN0YW1weBgyMDIzLTAxLTI1VDE3OjMyOjQyLjk3MVqtAQFxEiDOJNtRIYSdeN2M-33SQ376rhngpMX77pEENbKbTEpL16JkZGF0YfZmaGVhZGVyomVtb2RlbFgozgECAYUBEiCIsWIw6kon5HSV8g-usyjT1ohr--q6zx-OOGy_05bUjWtjb250cm9sbGVyc4F4O2RpZDpwa2g6ZWlwMTU1OjE6MHg5MjZlZWIxOTJjMThiN2JlNjA3YTdlMTBjOGU3YTdlOGQ5ZjcwNzQyhQMBhQESIGyfyb7xASv7lhnodKvJO_vKW09AOfRy5nyhDVnkXuCSomdwYXlsb2FkWCQBcRIgZb5XVv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