-
-
Notifications
You must be signed in to change notification settings - Fork 999
/
getScript.ts.snap
41 lines (34 loc) 路 1.04 KB
/
getScript.ts.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`hookScript should match snapshot (OS X/Linux) 1`] = `
"#!/bin/sh
# husky
# v1.0.1 darwin
scriptPath=\\"node_modules/husky/lib/runner/bin.js\\"
hookName=\`basename \\"$0\\"\`
gitParams=\\"$*\\"
if ! command -v node >/dev/null 2>&1; then
echo \\"Can't find node in PATH, trying to find a node binary on your system\\"
fi
if [ -f $scriptPath ]; then
node_modules/run-node/run-node $scriptPath $hookName \\"$gitParams\\"
else
echo \\"Can't find Husky, skipping $hookName hook\\"
echo \\"You can reinstall it using 'npm install husky --save-dev' or delete this hook\\"
fi
"
`;
exports[`hookScript should match snapshot (Windows) 1`] = `
"#!/bin/sh
# husky
# v1.0.1 win32
scriptPath=\\"node_modules/husky/lib/runner/bin.js\\"
hookName=\`basename \\"$0\\"\`
gitParams=\\"$*\\"
if [ -f $scriptPath ]; then
node $scriptPath $hookName \\"$gitParams\\"
else
echo \\"Can't find Husky, skipping $hookName hook\\"
echo \\"You can reinstall it using 'npm install husky --save-dev' or delete this hook\\"
fi
"
`;