chardet/src/encoding/utf8.test.ts

10 lines
210 B
TypeScript

import * as chardet from '..';
describe('UTF-8', () => {
it('should return UTF-8', () => {
expect(
chardet.detectFileSync(__dirname + '/../test/data/encodings/utf8')
).toBe('UTF-8');
});
});