Skip to content

Commit 0d1d4af

Browse files
committed
test(json-pack): 💍 correct test
1 parent af595a9 commit 0d1d4af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/json-pack/cbor/__tests__/CborEncoderDag.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ describe('floats', () => {
105105
const floats = [0.1, 0.2, 0.3, 0.4, 0.5, -0.1, -0.2, -0.3, -0.4, -0.5, 1.1, 1.12, 1.123, 1.1234, 0.12, 0.123, 0.1234];
106106
const sizes = new Set<number>();
107107
for (const float of floats) {
108-
const encoded = encoder.encode({a: 'a', b: new JsonPackExtension(42, 'b')});
108+
const encoded = encoder.encode(float);
109109
sizes.add(encoded.length);
110110
}
111111
expect(sizes.size).toBe(1);

0 commit comments

Comments
 (0)