Skip to content

Commit

Permalink
Test t.like() support
Browse files Browse the repository at this point in the history
  • Loading branch information
ninevra committed Jul 26, 2020
1 parent bd959e1 commit c08dea6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/assertion-arguments.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ ruleTester.run('assertion-arguments', rule, {
testCase(false, 't.deepEqual(dynamic, \'static\');'),
testCase(false, 't.deepEqual(dynamic, dynamic);'),
testCase(false, 't.is(dynamic, \'static\');'),
testCase(false, 't.like(dynamic, \'static\');'),
testCase(false, 't.not(dynamic, \'static\');'),
testCase(false, 't.notDeepEqual(dynamic, \'static\');'),
testCase(false, 't.throws(() => {}, expected);'),
Expand Down Expand Up @@ -448,6 +449,10 @@ ruleTester.run('assertion-arguments', rule, {
outOfOrderError(1, 6, 1, 23),
{output: 't.is(dynamic, \'static\');'}
),
testCase(false, 't.like({a: {b: 1}}, dynamic);',
outOfOrderError(1, 8, 1, 28),
{output: 't.like(dynamic, {a: {b: 1}});'}
),
testCase(false, 't.not(\'static\', dynamic);',
outOfOrderError(1, 7, 1, 24),
{output: 't.not(dynamic, \'static\');'}
Expand Down

0 comments on commit c08dea6

Please sign in to comment.