1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-21 09:38:01 +02:00
joplin/packages/lib/utils/replaceUnsupportedCharacters.test.ts

9 lines
346 B
TypeScript
Raw Normal View History

import replaceUnsupportedCharacters from './replaceUnsupportedCharacters';
describe('replaceUnsupportedCharacters', () => {
test('should replace NULL characters', () => {
2024-10-05 21:22:44 +02:00
expect(replaceUnsupportedCharacters('Test\x00...')).toBe('Test\uFFFD...');
expect(replaceUnsupportedCharacters('\x00Test\x00...')).toBe('\uFFFDTest\uFFFD...');
});
});