Skip to content

Commit a942f68

Browse files
pre-commit-ci[bot]CommanderStorm
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 724b9b3 commit a942f68

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
@@ -158,9 +158,7 @@ describe("decodeUnsignedInt32Stream", () => {
158158

159159
it("should decode little-endian uint32 words with PhysicalLevelTechnique.NONE", () => {
160160
const metadata = createInt32PhysicalNoneMetadata(3);
161-
const data = new Uint8Array([
162-
0x78, 0x56, 0x34, 0x12, 0xef, 0xcd, 0xab, 0x90, 0x01, 0x00, 0x00, 0x00,
163-
]);
161+
const data = new Uint8Array([0x78, 0x56, 0x34, 0x12, 0xef, 0xcd, 0xab, 0x90, 0x01, 0x00, 0x00, 0x00]);
164162

165163
const result = decodeUnsignedInt32Stream(data, new IntWrapper(0), metadata);
166164

@@ -218,9 +216,7 @@ describe("decodeUnsignedInt32Stream", () => {
218216
describe("decodeSignedInt32Stream", () => {
219217
it("should decode little-endian zigzag-encoded uint32 words with PhysicalLevelTechnique.NONE", () => {
220218
const metadata = createInt32PhysicalNoneMetadata(3);
221-
const data = new Uint8Array([
222-
0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
223-
]);
219+
const data = new Uint8Array([0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00]);
224220

225221
const result = decodeSignedInt32Stream(data, new IntWrapper(0), metadata);
226222

0 commit comments

Comments
 (0)