Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuibu committed Feb 27, 2023
1 parent ab48a26 commit e86a63a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/expect-utils/src/__tests__/utils.test.ts
Expand Up @@ -15,6 +15,7 @@ import {
getPath,
iterableEquality,
subsetEquality,
typeEquality,
} from '../utils';

describe('getPath()', () => {
Expand Down Expand Up @@ -546,6 +547,12 @@ describe('iterableEquality', () => {
});
});

describe('typeEquality', () => {
test('returns undefined if given mock.calls and []', () => {
expect(typeEquality(jest.fn().mock.calls, [])).toBeUndefined();
});
});

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

0 comments on commit e86a63a

Please sign in to comment.