mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-11 16:18:11 +00:00
adjust tests to work with cleanup
This commit is contained in:
parent
06b082a977
commit
313edc2af5
@ -76,7 +76,7 @@ test("if on_finish returns a Promise, wait for resolve before showing end messag
|
||||
const { getHTML, expectFinished, expectRunning } = await startTimeline(timeline, jsPsych);
|
||||
|
||||
expect(getHTML()).toMatch("foo");
|
||||
pressKey("a");
|
||||
await pressKey("a");
|
||||
expect(getHTML()).not.toMatch("foo");
|
||||
expect(getHTML()).not.toMatch("bar");
|
||||
|
||||
|
@ -38,6 +38,8 @@ export class TimelineNodeDependenciesMock implements TimelineNodeDependencies {
|
||||
getDefaultIti = jest.fn(() => 0);
|
||||
|
||||
finishTrialPromise = new PromiseWrapper<TrialResult>();
|
||||
|
||||
clearAllTimeouts = jest.fn();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user