We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d369619 commit 2f7ad79Copy full SHA for 2f7ad79
1 file changed
test.js
@@ -4,9 +4,9 @@ import test from 'ava';
4
import commitCount from './index';
5
6
test('check if process.cwd() is a git repo', (t) => {
7
- t.is(0, commitCount());
+ t.not(commitCount(), 0);
8
});
9
10
test('check if another dir is a git repo', (t) => {
11
- t.is(0, commitCount(homedir()));
+ t.is(commitCount(homedir()), 0);
12
0 commit comments