mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-23 23:29:12 -04:00
Add trailing commas to ESLint + Prettier
This commit is contained in:
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);',
|
||||
);
|
||||
});
|
||||
};
|
||||
Reference in new issue
Block a user