You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-06 23:56:13 +02:00
9 lines
346 B
TypeScript
9 lines
346 B
TypeScript
import replaceUnsupportedCharacters from './replaceUnsupportedCharacters';
|
|
|
|
describe('replaceUnsupportedCharacters', () => {
|
|
test('should replace NULL characters', () => {
|
|
expect(replaceUnsupportedCharacters('Test\x00...')).toBe('Test\uFFFD...');
|
|
expect(replaceUnsupportedCharacters('\x00Test\x00...')).toBe('\uFFFDTest\uFFFD...');
|
|
});
|
|
});
|