Skip to content

Commit 2f7ad79

Browse files
committed
✅ Test: add tests for index.js
1 parent d369619 commit 2f7ad79

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import test from 'ava';
44
import commitCount from './index';
55

66
test('check if process.cwd() is a git repo', (t) => {
7-
t.is(0, commitCount());
7+
t.not(commitCount(), 0);
88
});
99

1010
test('check if another dir is a git repo', (t) => {
11-
t.is(0, commitCount(homedir()));
11+
t.is(commitCount(homedir()), 0);
1212
});

0 commit comments

Comments
 (0)