Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Fallback on suite test globals if none provided #97

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ianwsperber
Copy link
Contributor

Small enhancement to fallback to test suite globals if none is provided. Should help with usability.

@ianwsperber ianwsperber requested review from carbonrobot and removed request for keithcom December 10, 2020 15:51
const callbackPrefix = mockTestFn.args[0][1];
await callbackPrefix();

expect(fse.existsSync(expectedFilenamePrefix)).to.be.true;
});

for (const fnName of ['it', 'test']) {
it(`should use the global "${fnName}" if no test function is provided`, async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should test be async here? I don't see any usage of await in this test.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants