diff --git a/test/basic.js b/test/basic.js index 9cabdb4..f25dbd9 100644 --- a/test/basic.js +++ b/test/basic.js @@ -635,10 +635,13 @@ t.test('basic', function (t) { } Object.keys(tests).forEach(function (arg) { - const res = normalizePaths(npa(arg, '/test/a/b')) - t.ok(res instanceof npa.Result, arg + ' is a result') - Object.keys(tests[arg]).forEach(function (key) { - t.match(res[key], tests[arg][key], arg + ' [' + key + ']') + t.test(arg, t => { + const res = normalizePaths(npa(arg, '/test/a/b')) + t.ok(res instanceof npa.Result, arg + ' is a result') + Object.keys(tests[arg]).forEach(function (key) { + t.match(res[key], tests[arg][key], arg + ' [' + key + ']') + }) + t.end() }) })