chardet/test/encodings/utf8.js

12 lines
254 B
JavaScript
Raw Permalink Normal View History

var assert = require('assert'),
2013-11-22 04:40:19 +00:00
chardet = require('../../');
describe('UTF-8', function() {
2013-11-22 04:40:19 +00:00
it('should return UTF-8', function() {
assert.equal(
chardet.detectFileSync(__dirname + '/../data/encodings/utf8'),
'UTF-8'
);
});
});