Skip to content

Commit

Permalink
🐛 remove the current directory test
Browse files Browse the repository at this point in the history
This test is changing the CWD and may affect other tests randomly, even if it's
serial. It's "okay" to not test this feature anyway.
  • Loading branch information
ngryman committed Aug 21, 2020
1 parent c6c98e1 commit 21b5a14
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ test('accept a limit parameter', async t => {
t.is(contribs.length, 100)
})

test.serial('use current directory by default', async t => {
process.chdir('fixtures')
const contribs = await contributors()
t.true(Array.isArray(contribs))
process.chdir(__dirname)
})

test('list contributors as html', async t => {
const html = await contributors.html('fixtures')
t.regex(html, /<a href="https:\/\/github.com\/baxterthehacker">/)
Expand Down

0 comments on commit 21b5a14

Please sign in to comment.