Skip to content

Commit

Permalink
Resolved Invalid test cases for slugify
Browse files Browse the repository at this point in the history
closes TryGhost#212
-Replaced invalid escape sequence with the required unicode escape sequence.
  • Loading branch information
keshav1sharma committed Dec 30, 2023
1 parent dc09e79 commit 2778929
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/string/test/slugify.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('Slugify', function () {
});

it('should remove control characters', function () {
var result = slugify('control:\x07notcontrol:\xB5');
var result = slugify('control:\x07notcontrol:\u00B5');
result.should.equal('control-notcontrol-u');
});

Expand Down
2 changes: 1 addition & 1 deletion packages/string/test/stripInvisibleChars.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('Strip Invisible Chars', function () {
});

it('should remove control characters', function () {
var result = stripInvisibleChars('control:\x07notcontrol:\xB5');
var result = stripInvisibleChars('control:\x07notcontrol:\u00B5');
result.should.equal('control:notcontrol:µ');
});

Expand Down

0 comments on commit 2778929

Please sign in to comment.