metarhia / metatests

Extremely simple to use test framework and runner for Metarhia technology stack 🧪
https://metarhia.com
Other
18 stars 4 forks source link

Crash on using null as ImperativeTest.test options #260

Open muturgan opened 3 years ago

muturgan commented 3 years ago

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