Skip to content

Commit

Permalink
fix(core): Fix eslint failures
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshm committed Jan 27, 2021
1 parent 35e0131 commit 4e83a1b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/eslint-plugin/test/api-deprecation.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ ruleTester.run('api-deprecation', rule, {
},
{
code: `API.withParams('foo');`,
output: `API.params('foo');`,
errors: ['API.withParams() is deprecated. Migrate from withParams() to params()'],
output: `API.query('foo');`,
errors: ['API.withParams() is deprecated. Migrate from withParams() to query()'],
},
{
code: `API.remove('foo');`,
Expand All @@ -52,17 +52,17 @@ ruleTester.run('api-deprecation', rule, {
// .get() doesn't have queryparams args
{
code: `API.path('foo').get(queryParams);`,
output: `API.path('foo').params(queryParams).get();`,
output: `API.path('foo').query(queryParams).get();`,
errors: [
'Passing parameters to API.get() is deprecated. Migrate from .get(queryparams) to .params(queryparams).get()',
'Passing parameters to API.get() is deprecated. Migrate from .get(queryparams) to .query(queryparams).get()',
],
},
// .delete() doesn't have queryparams args
{
code: `API.path('foo').delete(queryParams);`,
output: `API.path('foo').params(queryParams).delete();`,
output: `API.path('foo').query(queryParams).delete();`,
errors: [
'Passing parameters to API.delete() is deprecated. Migrate from .delete(queryparams) to .params(queryparams).delete()',
'Passing parameters to API.delete() is deprecated. Migrate from .delete(queryparams) to .query(queryparams).delete()',
],
},
// .delete() doesn't have queryparams args
Expand Down

0 comments on commit 4e83a1b

Please sign in to comment.