Skip to content

Commit

Permalink
follow style standards
Browse files Browse the repository at this point in the history
  • Loading branch information
khai93 committed Sep 2, 2021
1 parent f4c9037 commit 41cc53d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/expect/src/__tests__/matchers.test.js
Expand Up @@ -437,7 +437,7 @@ describe('.toStrictEqual()', () => {
expect(Uint8Array.from([1]).buffer).toStrictEqual(Uint8Array.from([1]).buffer);
expect(Uint8Array.from([]).buffer).toStrictEqual(Uint8Array.from([]).buffer);
expect(Uint8Array.from([9,3]).buffer).toStrictEqual(Uint8Array.from([9,3]).buffer);
})
});
/* eslint-enable */
});

Expand Down
4 changes: 2 additions & 2 deletions packages/expect/src/__tests__/utils.test.ts
Expand Up @@ -470,14 +470,14 @@ describe('iterableEquality', () => {

describe('arrayBufferEquality', () => {
test('returns undefined if given a non instance of ArrayBuffer', () => {
expect(arrayBufferEquality(2, "s")).toBeUndefined();
expect(arrayBufferEquality(2, 's')).toBeUndefined();
expect(arrayBufferEquality(undefined, 2)).toBeUndefined();
expect(arrayBufferEquality(new Date(), new ArrayBuffer(2))).toBeUndefined();
});

test('returns false when given non-matching buffers', () => {
const a = Uint8Array.from([2,4]).buffer;
const b = Uint8Array.from([1,7]).buffer;
const b = Uint16Array.from([1,7]).buffer;
expect(arrayBufferEquality(a, b)).not.toBeTruthy();
});

Expand Down
2 changes: 1 addition & 1 deletion packages/expect/src/utils.ts
Expand Up @@ -340,7 +340,7 @@ export const arrayBufferEquality = (a: unknown, b: unknown): boolean | undefined
}

return true;
}
};

export const sparseArrayEquality = (
a: unknown,
Expand Down

0 comments on commit 41cc53d

Please sign in to comment.