Skip to content

Commit 640b1b5

Browse files
committed
remove test case
1 parent 3e3994c commit 640b1b5

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

simple-git-hooks.test.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -399,30 +399,6 @@ describe("Simple Git Hooks tests", () => {
399399
expect(isEqual(installedHooks, {})).toBe(true);
400400
});
401401

402-
it("only removes git hooks which are not in preserveUnused", () => {
403-
createGitHooksFolder(PROJECT_WITH_UNUSED_CONF_IN_PACKAGE_JSON);
404-
405-
const installedHooksDir = path.normalize(
406-
path.join(PROJECT_WITH_UNUSED_CONF_IN_PACKAGE_JSON, ".git", "hooks")
407-
);
408-
409-
fs.writeFileSync(
410-
path.resolve(installedHooksDir, "commit-msg"),
411-
"# do nothing"
412-
);
413-
414-
let installedHooks = getInstalledGitHooks(installedHooksDir);
415-
416-
expect(isEqual(installedHooks, { "commit-msg": "# do nothing" })).toBe(true);
417-
418-
simpleGitHooks.setHooksFromConfig(PROJECT_WITH_UNUSED_CONF_IN_PACKAGE_JSON);
419-
420-
simpleGitHooks.removeHooks(PROJECT_WITH_UNUSED_CONF_IN_PACKAGE_JSON);
421-
422-
installedHooks = getInstalledGitHooks(installedHooksDir);
423-
expect(isEqual(installedHooks, { "commit-msg": "# do nothing" })).toBe(true);
424-
});
425-
426402
it("creates git hooks and removes unused git hooks", async () => {
427403
createGitHooksFolder(PROJECT_WITH_CONF_IN_PACKAGE_JSON);
428404

0 commit comments

Comments
 (0)