From 76ff6295da82d6e66a66cf3f53b40876ee6e84cf Mon Sep 17 00:00:00 2001 From: Harry Solovay Date: Wed, 29 Mar 2023 13:25:56 -0400 Subject: [PATCH] get rid of old snap --- .../__snapshots__/partialRecord.test.ts.snap | 205 ------------------ 1 file changed, 205 deletions(-) delete mode 100644 codecs/test/__snapshots__/partialRecord.test.ts.snap diff --git a/codecs/test/__snapshots__/partialRecord.test.ts.snap b/codecs/test/__snapshots__/partialRecord.test.ts.snap deleted file mode 100644 index 710443a..0000000 --- a/codecs/test/__snapshots__/partialRecord.test.ts.snap +++ /dev/null @@ -1,205 +0,0 @@ -export const snapshot = {}; - -snapshot[`\$.transform( - { - "\$base": \$.array(\$.tuple(\$.str, \$.str)), - encode: [Function: entries], - decode: [Function: fromEntries] - } -) { a: "hi", b: "sup", c: "yo" } 1`] = ` -0c -04 -61 -08 -68 -69 -04 -62 -0c -73 -75 -70 -04 -63 -08 -79 -6f -`; - -snapshot[`\$.transform( - { - "\$base": \$.array(\$.tuple(\$.str, \$.str)), - encode: [Function: entries], - decode: [Function: fromEntries] - } -) { the: "quick", brown: "fox", jumped: "over", theLazy: "hen" } 1`] = ` -10 -0c -74 -68 -65 -14 -71 -75 -69 -63 -6b -14 -62 -72 -6f -77 -6e -0c -66 -6f -78 -18 -6a -75 -6d -70 -65 -64 -10 -6f -76 -65 -72 -1c -74 -68 -65 -4c -61 -7a -79 -0c -68 -65 -6e -`; - -snapshot[`\$.transform( - { - "\$base": \$.array(\$.tuple(\$.str, \$.transform(Array))), - encode: [Function: entries], - decode: [Function: fromEntries] - } -) { one: { two: 3 }, four: { five: 6 }, seven: { eight: 9 } } 1`] = ` -0c -0c -6f -6e -65 -04 -0c -74 -77 -6f -03 -10 -66 -6f -75 -72 -04 -10 -66 -69 -76 -65 -06 -14 -73 -65 -76 -65 -6e -04 -14 -65 -69 -67 -68 -74 -09 -`; - -snapshot[`\$.transform( - { - "\$base": \$.array(\$.tuple(\$.literalUnion(Array), \$.u8)), - encode: [Function: entries], - decode: [Function: fromEntries] - } -) { a: 1, b: 2 } 1`] = ` -08 -00 -01 -01 -02 -`; - -snapshot[`\$.transform( - { - "\$base": \$.array(\$.tuple(\$.str, \$.str)), - encode: [Function: entries], - decode: [Function: fromEntries] - } -) invalid [ true, false ] 1`] = `ScaleAssertError: typeof value#encode[0][1] !== "string"`; - -snapshot[`\$.transform( - { - "\$base": \$.array(\$.tuple(\$.str, \$.str)), - encode: [Function: entries], - decode: [Function: fromEntries] - } -) invalid [ 1, 2, 3, -1, 4 ] 1`] = `ScaleAssertError: typeof value#encode[0][1] !== "string"`; - -snapshot[`\$.transform( - { - "\$base": \$.array(\$.tuple(\$.str, \$.u8)), - encode: [Function: entries], - decode: [Function: fromEntries] - } -) invalid { this: "should" } 1`] = `ScaleAssertError: typeof value#encode[0][1] !== "number"`; - -snapshot[`\$.transform( - { - "\$base": \$.array(\$.tuple(\$.str, \$.u8)), - encode: [Function: entries], - decode: [Function: fromEntries] - } -) invalid { be: "invalid" } 1`] = `ScaleAssertError: typeof value#encode[0][1] !== "number"`; - -snapshot[`\$.transform( - { - "\$base": \$.array(\$.tuple(\$.str, \$.u8)), - encode: [Function: entries], - decode: [Function: fromEntries] - } -) invalid { and: "this" } 1`] = `ScaleAssertError: typeof value#encode[0][1] !== "number"`; - -snapshot[`\$.transform( - { - "\$base": \$.array(\$.tuple(\$.literalUnion(Array), \$.u8)), - encode: [Function: entries], - decode: [Function: fromEntries] - } -) invalid { hello: 3 } 1`] = `ScaleAssertError: value#encode[0][0] invalid value`; - -snapshot[`\$.transform( - { - "\$base": \$.array(\$.tuple(\$.literalUnion(Array), \$.u8)), - encode: [Function: entries], - decode: [Function: fromEntries] - } -) invalid { goodbye: 4 } 1`] = `ScaleAssertError: value#encode[0][0] invalid value`; - -snapshot[`\$.transform( - { - "\$base": \$.array(\$.tuple(\$.literalUnion(Array), \$.u8)), - encode: [Function: entries], - decode: [Function: fromEntries] - } -) invalid { first: 5, goodbye: 6 } 1`] = `ScaleAssertError: value#encode[1][0] invalid value`;