Skip to content

Commit

Permalink
fix: Add more escape tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lxcid committed Jul 22, 2024
1 parent 38d6e82 commit b3b546b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ describe('utils', function () {
});

it('should unescape script text', function () {
expect(unescapeScriptText('"\\x27"')).to.eql('"\'"');
expect(unescapeScriptText('"\\x26"')).to.eql('"&"');
expect(unescapeScriptText('"\\x22"')).to.eql('"\\""');
});
Expand Down

0 comments on commit b3b546b

Please sign in to comment.