From e65315e8b2bb78b930e05dee9e1493e19e9d66c7 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 7 Oct 2014 12:36:04 +1300 Subject: [PATCH] Allow tests to be run from subdirectories This fixes a bug where currently if you try and run tests.html from a subdirectory e.g. /js/third_party/papaparse/tests/tests.html the 2 tests above will fail. --- tests/test-cases.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-cases.js b/tests/test-cases.js index db9bb46..a03f03d 100644 --- a/tests/test-cases.js +++ b/tests/test-cases.js @@ -571,7 +571,7 @@ var PARSE_ASYNC_TESTS = [ }, { description: "Simple download", - input: "/tests/sample.csv", + input: "sample.csv", config: { download: true }, @@ -582,7 +582,7 @@ var PARSE_ASYNC_TESTS = [ }, { description: "Simple download + worker", - input: "/tests/sample.csv", + input: "tests/sample.csv", config: { worker: true, download: true