chardet/test/encodings/utf8.js

12 lines
280 B
JavaScript

var assert = require('assert'),
chardet = require('../../');
describe('UTF-8', function() {
it('should return UTF-8', function() {
assert.equal(
chardet.detectFileSync(__dirname + '/../data/encodings/utf8'),
'UTF-8'
);
});
});