Fixing test. Modified capitalization of utf8 after reading W3C spec

This commit is contained in:
= 2016-10-13 12:59:14 -04:00
parent 729bb9a9e4
commit ee22983e7b
2 changed files with 2 additions and 2 deletions

View file

@ -179,7 +179,7 @@ describe('AggTable Directive', function () {
'1,2,"""foobar"""' + '\r\n'
]);
expect(call.args[0].opts).to.eql({
type: 'text/plain'
type: 'text/plain;charset=utf-8'
});
expect(call.args[1]).to.be('somefilename.csv');
});

View file

@ -36,7 +36,7 @@ uiModules
};
self.exportAsCsv = function (formatted) {
let csv = new Blob([self.toCsv(formatted)], { type: 'text/plain;charset=UTF-8;' });
let csv = new Blob([self.toCsv(formatted)], { type: 'text/plain;charset=utf-8' });
self._saveAs(csv, self.csv.filename);
};