From 8a2cda0fd61fc1f7da296b868d5506285741d244 Mon Sep 17 00:00:00 2001 From: Duc Tri Le Date: Sat, 16 Nov 2019 09:45:01 -0500 Subject: [PATCH] Fix linting errors --- tests/test-cases.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/test-cases.js b/tests/test-cases.js index b635933..6fc030f 100644 --- a/tests/test-cases.js +++ b/tests/test-cases.js @@ -1904,7 +1904,6 @@ var CUSTOM_TESTS = [ expected: ["SembCorp Industries Ltd", "Singapore", "SCIL.SI", "10%", "Yes", "0.30%"], run: function(callback) { var chunkNum = 0; - var actual = []; Papa.parse(BASE_PATH + "duplicate.csv", { download: true, chunkSize: 250000, @@ -1931,7 +1930,6 @@ var CUSTOM_TESTS = [ expected: ["SembCorp Industries Ltd", "Singapore", "SCIL.SI", "10%", "Yes", "0.30%"], run: function(callback) { var chunkNum = 0; - var actual = []; // A little bit of a hack but this allows us to test the FileStreamer for local files. Essentially, this uses the // AJAX request to get the full content and fake the local file. @@ -1953,7 +1951,7 @@ var CUSTOM_TESTS = [ callback(new Error("Should have more than 2 chunks")); } }); - } + }; xhr.open("GET", BASE_PATH + "duplicate.csv"); try { @@ -1972,16 +1970,13 @@ var CUSTOM_TESTS = [ expected: ["SembCorp Marine Ltd", "Singapore", "SCMN.SI", "15%", "Yes", "0.30%"], run: function(callback) { var chunkNum = 0; - var actual = []; // Same hack for testing FileStreamer but this time, we just provide the content var xhr = new XMLHttpRequest(); xhr.onload = function() { - debugger; Papa.parse(xhr.responseText, { chunkSize: 250000, chunk: function(results, parser) { - debugger; chunkNum++; parser.pause(); @@ -1995,7 +1990,7 @@ var CUSTOM_TESTS = [ callback(new Error("Should have more than 2 chunks")); } }); - } + }; xhr.open("GET", BASE_PATH + "duplicate.csv"); try {