Skip to content

Commit cd21bb1

Browse files
committed
chore: fix partially eslint
1 parent 1ed2965 commit cd21bb1

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

src/__tests__/tagProcessors.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
/* eslint-disable camelcase */
21
/* eslint-disable no-tabs */
3-
import he from 'he';
42

53
import { parse } from '../parse';
64

src/bufferUtils/__tests__/arrayIndexOf.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ describe('arrayIndexOf', () => {
1111
const singleTest = new Uint8Array([0x2e]);
1212
const repeaTest = new Uint8Array([0x5d, 0x5d, 0x3e]);
1313
const repeats = new Uint8Array([0x5d, 0x5d, 0x5d, 0x5d, 0x3e, 0x5d]);
14-
expect(arrayIndexOf(whole, testString)).toStrictEqual(0);
15-
expect(arrayIndexOf(sandwiched, testString)).toStrictEqual(1);
14+
expect(arrayIndexOf(whole, testString)).toBe(0);
15+
expect(arrayIndexOf(sandwiched, testString)).toBe(1);
1616
expect(arrayIndexOf(notIn, testString)).toStrictEqual(-1);
1717
expect(
1818
arrayIndexOf(new Uint8Array([49, 46, 51, 52]), singleTest),
19-
).toStrictEqual(1);
20-
expect(arrayIndexOf(repeats, repeaTest)).toStrictEqual(2);
19+
).toBe(1);
20+
expect(arrayIndexOf(repeats, repeaTest)).toBe(2);
2121
});
2222
});

src/traversable/__tests__/processTagValue.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,28 @@ import { processTagValue } from '../processTagValue';
44
test('processTagValue', () => {
55
expect(
66
processTagValue(new Uint8Array([0x74, 0x72, 0x75, 0x65]), defaultOptions),
7-
).toStrictEqual(true);
7+
).toBe(true);
88
expect(
99
processTagValue(new Uint8Array([0x31, 0x32, 0x33, 0x34]), defaultOptions),
10-
).toStrictEqual(1234);
10+
).toBe(1234);
1111
expect(
1212
processTagValue(
1313
new Uint8Array([0x66, 0x61, 0x6c, 0x73, 0x65]),
1414
defaultOptions,
1515
),
16-
).toStrictEqual(false);
16+
).toBe(false);
1717
expect(
1818
processTagValue(new Uint8Array([0x31, 0x2e, 0x33, 0x34]), defaultOptions),
19-
).toStrictEqual(1.34);
19+
).toBe(1.34);
2020
expect(
2121
processTagValue(new Uint8Array([0x30, 0x78, 0x61, 0x32]), defaultOptions),
22-
).toStrictEqual(0xa2);
22+
).toBe(0xa2);
2323
expect(
2424
processTagValue(
2525
new Uint8Array([
2626
0x20, 0x73, 0x6f, 0x6d, 0x65, 0x20, 0x76, 0x61, 0x6c, 0x20,
2727
]),
2828
{ ...defaultOptions, ...{ trimValues: false } },
2929
),
30-
).toStrictEqual(' some val ');
30+
).toBe(' some val ');
3131
});

0 commit comments

Comments
 (0)