-
-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cdcf9af
commit 88728e2
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`hook command should match hook configuration 1`] = ` | ||
Object { | ||
"CONTENTS": "#!/bin/sh | ||
# gitmoji as a commit hook | ||
exec < /dev/tty | ||
gitmoji --hook $1 | ||
", | ||
"PATH": "/hooks/prepare-commit-msg", | ||
"PERMISSIONS": 509, | ||
} | ||
`; | ||
|
||
exports[`hook command should match hook module export 1`] = ` | ||
Object { | ||
"create": [Function], | ||
"remove": [Function], | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import hook from '../../src/commands/hook' | ||
import hookConfig from '../../src/commands/hook/hook' | ||
|
||
describe('hook command', () => { | ||
it('should match hook module export', () => { | ||
expect(hook).toMatchSnapshot() | ||
}) | ||
|
||
it('should match hook configuration', () => { | ||
expect(hookConfig).toMatchSnapshot() | ||
}) | ||
|
||
describe('create hook', () => {}) | ||
|
||
describe('remove hook', () => {}) | ||
}) |