File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments