Chore: Fix CI (#11173)

pull/11175/head^2
Henry Heino 2024-10-05 12:22:44 -07:00 committed by GitHub
parent 0f23882d47
commit 432fac8fda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import replaceUnsupportedCharacters from './replaceUnsupportedCharacters';
describe('replaceUnsupportedCharacters', () => {
test('should replace NULL characters', () => {
expect(replaceUnsupportedCharacters('Test\x00...')).toBe('Test<EFBFBD>...');
expect(replaceUnsupportedCharacters('\x00Test\x00...')).toBe('<EFBFBD>Test<EFBFBD>...');
expect(replaceUnsupportedCharacters('Test\x00...')).toBe('Test\uFFFD...');
expect(replaceUnsupportedCharacters('\x00Test\x00...')).toBe('\uFFFDTest\uFFFD...');
});
});

View File

@ -1,7 +1,7 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2015",
"target": "es2017",
//"lib": ["es2015", "es2020.string", "dom", "dom.iterable"],
"alwaysStrict": true,
"forceConsistentCasingInFileNames": true,