@graphiql/react
Version:
[Changelog](https://github.com/graphql/graphiql/blob/main/packages/graphiql-react/CHANGELOG.md) | [API Docs](https://graphiql-test.netlify.app/typedoc/modules/graphiql_react.html) | [NPM](https://www.npmjs.com/package/@graphiql/react)
11 lines (8 loc) • 316 B
text/typescript
'use no memo';
import { invalidCharacters, normalizeWhitespace } from '../whitespace';
describe('normalizeWhitespace', () => {
it('removes unicode characters', () => {
const result = normalizeWhitespace(invalidCharacters.join(''));
expect(result).toEqual(' '.repeat(invalidCharacters.length));
});
});