Browse Source

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.
pull/93/head
Paul 10 years ago
parent
commit
e65315e8b2
  1. 4
      tests/test-cases.js

4
tests/test-cases.js

@ -571,7 +571,7 @@ var PARSE_ASYNC_TESTS = [ @@ -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 = [ @@ -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

Loading…
Cancel
Save