Skip to content

Commit d4a4e71

Browse files
Fix JSON comparison
1 parent 0401ede commit d4a4e71

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/slicer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
class RequesterBrowser {
1313
run(token, url, reqType, data = null) {
1414
url = url.hostname + url.path;
15-
//console.log(data);
1615
return new Promise(function(resolve, reject) {
1716
let req = new XMLHttpRequest();
1817
req.open(reqType, url, true);

tests_and_examples/runQueryTests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class SlicingDiceTester {
214214
console.log(' Querying');
215215

216216
if (this.verbose){
217-
console.log(' - {}'.format(query_data));
217+
console.log(' - ' + JSON.stringify(queryData));
218218
}
219219

220220
var queryTypeMethodMap = {
@@ -291,11 +291,11 @@ class SlicingDiceTester {
291291
if (expected.constructor !== result.constructor) return false;
292292

293293
if (expected instanceof Array) {
294-
return this.compareJsonValue(expected, result);
294+
return this.arrayEqual(expected, result);
295295
}
296296

297297
if(typeof expected === "object") {
298-
return this.arrayEqual(expected, result);
298+
return this.compareJsonValue(expected, result);
299299
}
300300

301301
return expected === result;

0 commit comments

Comments
 (0)