smartstring/test/test.normalize.both.ts
2022-03-18 22:50:24 +01:00

20 lines
425 B
TypeScript

import { tap, expect } from '@pushrocks/tapbundle';
import * as smartstring from '../ts/index.js';
tap.test('should normalize a string', async () => {
const testString = `
myawesome string;
is indented with two spaces
`;
const normalizedString = smartstring.normalize.standard(testString);
expect(normalizedString).toEqual(
`
myawesome string;
is indented with two spaces
`
);
});
tap.start();