mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-27 08:21:03 +02:00
9 lines
337 B
TypeScript
9 lines
337 B
TypeScript
import replaceUnsupportedCharacters from './replaceUnsupportedCharacters';
|
|
|
|
describe('replaceUnsupportedCharacters', () => {
|
|
test('should replace NULL characters', () => {
|
|
expect(replaceUnsupportedCharacters('Test\x00...')).toBe('Test�...');
|
|
expect(replaceUnsupportedCharacters('\x00Test\x00...')).toBe('�Test�...');
|
|
});
|
|
});
|