Skip to content

Commit 0c56950

Browse files
committed
test: fix init test expectation after behavior change
1 parent 1264ffc commit 0c56950

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/init.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ describe('initHusky', () => {
2121
}
2222
});
2323

24-
test('should return 0 when .husky directory does not exist', () => {
24+
test('should return 1 when .husky directory does not exist', () => {
2525
const result = initHusky(tempDir);
26-
assert.strictEqual(result, 0);
26+
assert.strictEqual(result, 1);
2727
});
2828

2929
test('should create new hook file when .husky exists but no hook file', () => {

0 commit comments

Comments
 (0)