Skip to content

Commit 0d7c36a

Browse files
committed
escape expected string
1 parent 0f2501c commit 0d7c36a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('devalue', () => {
4343
test('two low surrogates', "a\uDC00\uDC00b", '"a\\uDC00\\uDC00b"');
4444
test('two high surrogates', "a\uD800\uD800b", '"a\\uD800\\uD800b"');
4545
test('surrogate pair', '𝌆', JSON.stringify('𝌆'));
46-
test('surrogate pair in wrong order', 'a\uDC00\uD800b', '"a\uDC00\uD800b"');
46+
test('surrogate pair in wrong order', 'a\uDC00\uD800b', '"a\\uDC00\\uD800b"');
4747
test('nul', '\0', '"\0"');
4848
test('backslash', '\\', JSON.stringify('\\'));
4949
});

0 commit comments

Comments
 (0)