pdf-to-markdown/core/test/support/stringFunctions.test.ts
2021-03-15 09:16:50 +01:00

8 lines
258 B
TypeScript

import { filterOutDigits } from 'src/support/stringFunctions';
test('filterOutDigits', async () => {
expect(filterOutDigits('')).toEqual('');
expect(filterOutDigits('a b c')).toEqual('a b c');
expect(filterOutDigits('a1b 2c 3')).toEqual('ab c ');
});