We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1633a5 commit 7004bddCopy full SHA for 7004bdd
tests/install.test.js
@@ -26,6 +26,17 @@ describe('--install', function () {
26
fsHelpers.exists(GIT_HOOKS).should.be.true;
27
});
28
29
+ describe('when git repo is missing its hooks folder', function () {
30
+ beforeEach(function () {
31
+ fsHelpers.removeDir(GIT_ROOT + '/hooks');
32
+ });
33
+
34
+ it('should install hooks', function () {
35
+ gitHooks.install(SANDBOX_PATH);
36
+ fsHelpers.exists(GIT_HOOKS).should.be.true;
37
38
39
40
describe('when it is run not inside a git repo', function () {
41
beforeEach(function () {
42
fsHelpers.removeDir(GIT_ROOT);
0 commit comments