Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-michelet committed Jan 19, 2024
1 parent d2f6864 commit dfd9b7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/issues/178-path-join-literal-args-is-not-unsafe.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const validTestCases = [
"const bin = require.resolve(path.join('..', './bin.js'));"
];

test("should not detect unsafe-import of path.join every argument is a Literal string", () => {
test("should not detect unsafe-import for path.join if every argument is a string literal", () => {
validTestCases.forEach((test) => {
const { warnings, dependencies } = runASTAnalysis(test);

Expand All @@ -29,7 +29,7 @@ const invalidTestCases = [
"const bin = require.resolve(path.join(3, '..', './bin.js'));"
];

test("should detect unsafe-import of path.join if not every argument is a Literal string", () => {
test("should detect unsafe-import of path.join if not every argument is a string literal", () => {
invalidTestCases.forEach((test) => {
const { warnings } = runASTAnalysis(test);

Expand Down

0 comments on commit dfd9b7c

Please sign in to comment.