Skip to content

Commit

Permalink
Updated unit test to mark eval as safe
Browse files Browse the repository at this point in the history
  • Loading branch information
corrideat committed Aug 2, 2023
1 parent 0ce7f3d commit 400a706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/censorUnsafeExpressions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('Censor unsafe expressions', () => {
);
}

const expression = () => eval(censored);
const expression = () => (0, eval)(censored);

if (expectation) {
assert.doesNotThrow(expression);
Expand Down

0 comments on commit 400a706

Please sign in to comment.