Exemplo n.º 1
0
 it('should return the origin string if the string does not have any Chinese characters', function() {
   var src = 'string without Chinese characters';
   utils.unicodeToUtf8(src).should.equal(src);
 });
Exemplo n.º 2
0
 it('should not return the origin string if the string has Chinese characters', function() {
   var src = 'string with Chinese characters 你好';
   utils.unicodeToUtf8(src).should.not.equal(src);
 });