Skip to content

Commit

Permalink
Update packages/eslint-plugin/tests/rules/ban-types.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Dec 2, 2022
1 parent 071bd84 commit 6a22bef
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions packages/eslint-plugin/tests/rules/ban-types.test.ts
Expand Up @@ -388,39 +388,6 @@ let b: Foo<NS.Good>;
},
],
},

{
code: noFormat`
declare let j: unknown;
let m3 = { ...(j as Record<string, never>) };
`,
output: `
declare let j: unknown;
let m3 = { ...(j as object) };
`,
options: [
{
types: {
'Record<string, never>': {
message: 'Use object instead.',
fixWith: 'object',
},
},
},
],
errors: [
{
messageId: 'bannedTypeMessage',
data: {
name: 'Record<string,never>',
customMessage: ' Use object instead.',
},
line: 3,
column: 21,
},
],
},

{
code: noFormat`
let foo: {} = {};
Expand Down

0 comments on commit 6a22bef

Please sign in to comment.