Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on using null as ImperativeTest.test options #260

Open
muturgan opened this issue Jun 3, 2021 · 0 comments
Open

Crash on using null as ImperativeTest.test options #260

muturgan opened this issue Jun 3, 2021 · 0 comments

Comments

@muturgan
Copy link
Contributor

muturgan commented Jun 3, 2021

This code works correctly:

const mt = require('metatests');
mt.test('Name', testFunc); // or even mt.test('Name', testFunc, undefinde);

but in this case:

const mt = require('metatests');
// for example I want to pass the fourth arg (runner) as d.ts allows me
mt.test('Name', testFunc, null);

I get the following error

TypeError: Cannot read property 'todo' of null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant