mirror of https://github.com/laurent22/joplin.git
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<73>...');
|
||
expect(replaceUnsupportedCharacters('\x00Test\x00...')).toBe('<27>Test<73>...');
|
||
});
|
||
});
|