Skip to content

Commit

Permalink
chore: name subtests for easier isolation
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Dec 11, 2024
1 parent d45dabc commit 07374d0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
})

Expand Down

0 comments on commit 07374d0

Please sign in to comment.