Merge pull request #2641 from jspsych/fix-testing-problems

Two small testing improvements
This commit is contained in:
Josh de Leeuw 2022-05-19 14:05:15 -04:00 committed by GitHub
commit 5e7408b803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -85,9 +85,6 @@ describe("setSeed generates predictable randomization", () => {
const data_run_2 = getData2().readOnly(); const data_run_2 = getData2().readOnly();
console.log(data_run_1.values());
console.log(data_run_2.values());
expect(data_run_1.select("i").values).toEqual(data_run_2.select("i").values); expect(data_run_1.select("i").values).toEqual(data_run_2.select("i").values);
}); });
}); });

View File

@ -226,6 +226,8 @@ describe("survey plugin", () => {
}); });
test("loads single-line text questions of various input types", async () => { test("loads single-line text questions of various input types", async () => {
jest.setTimeout(10000); // default timeout of 5s is too short for this test
const inputTypes = [ const inputTypes = [
"color", "color",
"date", "date",