Skip to content

Commit 545ecba

Browse files
committed
update test case
1 parent 09ee347 commit 545ecba

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/jspsych/tests/core/simulation-mode.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,9 @@ describe("data simulation mode", () => {
487487
const simulation_options = {
488488
default: {
489489
simulate: false,
490+
data: {
491+
rt: 200,
492+
},
490493
},
491494
long_response: {
492495
simulate: true,
@@ -527,6 +530,13 @@ describe("data simulation mode", () => {
527530
jest.runAllTimers();
528531

529532
await expectFinished();
533+
534+
const data = getData().values()[1];
535+
536+
console.log(data);
537+
538+
expect(data.rt).toBeGreaterThan(0);
539+
expect(data.response).toBeDefined();
530540
});
531541

532542
test("Simulation timeouts are handled correctly when user interacts with simulation, #2862", async () => {

0 commit comments

Comments
 (0)