Skip to content

Commit

Permalink
test: remove some duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Sep 6, 2024
1 parent 26f5e06 commit 934f59e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
11 changes: 0 additions & 11 deletions tests/src/rules/no-extraneous-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@ ruleTester.run('no-extraneous-dependencies', rule, {
test({ code: `export { foo } from "${pkg}"` }),
test({ code: `export * from "${pkg}"` }),
]),
test({ code: 'import "eslint"' }),
test({ code: 'import "eslint/lib/api"' }),
test({ code: 'import "fs"' }),
test({ code: 'import "./foo"' }),
test({ code: 'import "@org/package"' }),

test({ code: 'import "electron"', settings: { 'import/core-modules': ['electron'] } }),
test({
Expand Down Expand Up @@ -386,15 +384,6 @@ ruleTester.run('no-extraneous-dependencies', rule, {
}],
}),

test({
code: 'import "not-a-dependency"',
filename: path.join(packageDirMonoRepoRoot, 'foo.js'),
options: [{ packageDir: packageDirMonoRepoRoot }],
errors: [{
message: `'not-a-dependency' should be listed in the project's dependencies. Run 'npm i -S not-a-dependency' to add it`,
}],
}),

test({
code: 'import "esm-package-not-in-pkg-json/esm-module";',
errors: [{
Expand Down
9 changes: 0 additions & 9 deletions tests/src/rules/no-unresolved.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,6 @@ function runResolverTests(resolver) {
],
}),

rest({
code: "import bar from './baz';",
errors: [
{
message: "Unable to resolve path to module './baz'.",
type: 'Literal',
},
],
}),
rest({
code: "import bar from './baz';",
errors: [
Expand Down

0 comments on commit 934f59e

Please sign in to comment.