diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-modules-only-named.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-modules-only-named.ts index 2fce317159bf..9fe8b02edad1 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-modules-only-named.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-modules-only-named.ts @@ -13,7 +13,7 @@ import rule from "../../src/rules/ts-modules-only-named"; // Tests //------------------------------------------------------------------------------ -const ruleTester = createRuleTester({ settings: { main: "src/test.ts" } }); +const ruleTester = createRuleTester({ settings: { main: "tests/fixture/src/test.ts" } }); ruleTester.run("ts-modules-only-named", rule, { valid: [ @@ -37,23 +37,23 @@ ruleTester.run("ts-modules-only-named", rule, { }, ], invalid: [ - // { - // code: 'export default {test: "test"}', - // filename: "src/test.ts", - // errors: [ - // { - // message: "Exports at top level should be named", - // }, - // ], - // }, - // { - // code: 'const foo = {test: "test"}; export default foo', - // filename: "src/test.ts", - // errors: [ - // { - // message: "Exports at top level should be named", - // }, - // ], - // }, + { + code: 'export default {test: "test"}', + filename: "src/test.ts", + errors: [ + { + message: "Exports at top level should be named", + }, + ], + }, + { + code: 'const foo = {test: "test"}; export default foo', + filename: "src/test.ts", + errors: [ + { + message: "Exports at top level should be named", + }, + ], + }, ], });