Skip to content

Commit 2778929

Browse files
committed
Resolved Invalid test cases for slugify
closes TryGhost#212 -Replaced invalid escape sequence with the required unicode escape sequence.
1 parent dc09e79 commit 2778929

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/string/test/slugify.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('Slugify', function () {
4343
});
4444

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

packages/string/test/stripInvisibleChars.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe('Strip Invisible Chars', function () {
99
});
1010

1111
it('should remove control characters', function () {
12-
var result = stripInvisibleChars('control:\x07notcontrol:\xB5');
12+
var result = stripInvisibleChars('control:\x07notcontrol:\u00B5');
1313
result.should.equal('control:notcontrol:µ');
1414
});
1515

0 commit comments

Comments
 (0)