Skip to content

Commit

Permalink
lint: updated code to pass lint rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammednumaan authored Jan 17, 2025
1 parent 011d04c commit ff0d770
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/expect/src/__tests__/asymmetricMatchers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ test('ObjectContaining matches defined properties', () => {
test('ObjectContaining matches prototype properties', () => {
const prototypeObject = {foo: 'bar'};
let obj;

if (Object.create) {
obj = Object.create(prototypeObject);
} else {
Expand All @@ -248,15 +247,14 @@ test('ObjectContaining throws for non-objects', () => {

test('ObjectContaining does not match when non-objects are passed to the expect function as arguments', () => {
for (const test of [
objectContaining({}).asymmetricMatch("jest"),
objectContaining({}).asymmetricMatch('jest'),
objectContaining({}).asymmetricMatch(10),
objectContaining({}).asymmetricMatch(false),
objectContaining({}).asymmetricMatch(undefined),
objectContaining({}).asymmetricMatch([]),
]) {
jestExpect(test).toEqual(false);
}

})

Check failure on line 258 in packages/expect/src/__tests__/asymmetricMatchers.test.ts

View workflow job for this annotation

GitHub Actions / Lint

Insert `;`

test('ObjectContaining does not mutate the sample', () => {
Expand Down

0 comments on commit ff0d770

Please sign in to comment.