Add trailing commas to ESLint + Prettier

This commit is contained in:
Gregory Schier committed 2018-12-12 12:36:11 -05:00
1 parent 64a5e44528
commit 88b0bb784f
404 files changed
+2575 -2571

No files matched your search

@@ -7,14 +7,14 @@ require('should');
module.exports = function(HTTPSnippet, fixtures) {
it('should not use cors', function() {
var result = new HTTPSnippet(fixtures.requests.short).convert('javascript', 'xhr', {
cors: false
cors: false,
});
result.should.be.a.String;
result
.replace(/\n/g, '')
.should.eql(
'var data = null;var xhr = new XMLHttpRequest();xhr.addEventListener("readystatechange", function () { if (this.readyState === this.DONE) { console.log(this.responseText); }});xhr.open("GET", "http://mockbin.com/har");xhr.send(data);'
'var data = null;var xhr = new XMLHttpRequest();xhr.addEventListener("readystatechange", function () { if (this.readyState === this.DONE) { console.log(this.responseText); }});xhr.open("GET", "http://mockbin.com/har");xhr.send(data);',
);
});
};