Skip to content

Commit

Permalink
updates base tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitropoulos committed Sep 16, 2024
1 parent 73ba593 commit f3c3730
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@ const ruleTester = new RuleTester({

ruleTester.run(RULES.noUndeclaredEnvVars, rule, {
valid: [
{
code: `
const { TZ } = process.env;
`,
options: [{ cwd: "/some/random/path" }],
},
{
code: `
const { ENV_1 } = process.env;
`,
options: [{ cwd: "/some/random/path" }],
},
],
invalid: [],
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@ const ruleTester = new RuleTester({

ruleTester.run(RULES.noUndeclaredEnvVars, rule, {
valid: [
{
code: `
const { TZ } = import.meta.env;
`,
options: [{ cwd: "/some/random/path" }],
},
{
code: `
const { ENV_1 } = import.meta.env;
`,
options: [{ cwd: "/some/random/path" }],
},
],
invalid: [],
});

0 comments on commit f3c3730

Please sign in to comment.