Skip to content

Commit 7ec23f0

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 96cbc84 commit 7ec23f0

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

ts/src/decoding/decodingUtils.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ describe("decodingUtils", () => {
8383

8484
it("should decode uint64 values from little-endian bytes", () => {
8585
const encoded = new Uint8Array([
86-
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
87-
0x88, 0x77, 0x66, 0x55, 0x44, 0x33, 0x22, 0x11,
86+
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x77, 0x66, 0x55, 0x44, 0x33, 0x22, 0x11,
8887
]);
8988
const offset = new IntWrapper(0);
9089

ts/src/decoding/integerStreamDecoder.spec.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,7 @@ describe("decodeUnsignedInt32Stream", () => {
110110

111111
it("should decode little-endian uint32 words with PhysicalLevelTechnique.NONE", () => {
112112
const metadata = createInt32PhysicalNoneMetadata(3);
113-
const data = new Uint8Array([
114-
0x78, 0x56, 0x34, 0x12, 0xef, 0xcd, 0xab, 0x90, 0x01, 0x00, 0x00, 0x00,
115-
]);
113+
const data = new Uint8Array([0x78, 0x56, 0x34, 0x12, 0xef, 0xcd, 0xab, 0x90, 0x01, 0x00, 0x00, 0x00]);
116114

117115
const result = decodeUnsignedInt32Stream(data, new IntWrapper(0), metadata);
118116

@@ -183,9 +181,7 @@ describe("decodeUnsignedInt32Stream", () => {
183181
describe("decodeSignedInt32Stream", () => {
184182
it("should decode little-endian zigzag-encoded uint32 words with PhysicalLevelTechnique.NONE", () => {
185183
const metadata = createInt32PhysicalNoneMetadata(3);
186-
const data = new Uint8Array([
187-
0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
188-
]);
184+
const data = new Uint8Array([0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00]);
189185

190186
const result = decodeSignedInt32Stream(data, new IntWrapper(0), metadata);
191187

0 commit comments

Comments
 (0)