Skip to content

Commit ee22983

Browse files
committed
Fixing test. Modified capitalization of utf8 after reading W3C spec
1 parent 729bb9a commit ee22983

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/ui/public/agg_table/__tests__/_table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ describe('AggTable Directive', function () {
179179
'1,2,"""foobar"""' + '\r\n'
180180
]);
181181
expect(call.args[0].opts).to.eql({
182-
type: 'text/plain'
182+
type: 'text/plain;charset=utf-8'
183183
});
184184
expect(call.args[1]).to.be('somefilename.csv');
185185
});

src/ui/public/agg_table/agg_table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ uiModules
3636
};
3737

3838
self.exportAsCsv = function (formatted) {
39-
let csv = new Blob([self.toCsv(formatted)], { type: 'text/plain;charset=UTF-8;' });
39+
let csv = new Blob([self.toCsv(formatted)], { type: 'text/plain;charset=utf-8' });
4040
self._saveAs(csv, self.csv.filename);
4141
};
4242

0 commit comments

Comments
 (0)