Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Jan 15, 2019
1 parent 8bf1674 commit 93b4bba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 2 additions & 4 deletions src/installer/__tests__/__snapshots__/getScript.ts.snap
Expand Up @@ -9,8 +9,7 @@ exports[`hookScript should match snapshot (OS X/Linux) 1`] = `
# At: <locale date string>
# See: https://github.com/typicode/husky#readme
# From npm package
# Name: foo-package
# From
# Directory: /home/typicode/projects/foo-package
# Homepage: https://github.com/foo/foo-package
Expand Down Expand Up @@ -53,8 +52,7 @@ exports[`hookScript should match snapshot (Windows) 1`] = `
# At: <locale date string>
# See: https://github.com/typicode/husky#readme
# From npm package
# Name: foo-package
# From
# Directory: /home/typicode/projects/foo-package
# Homepage: https://github.com/foo/foo-package
Expand Down
4 changes: 0 additions & 4 deletions src/installer/getScript.ts
Expand Up @@ -9,7 +9,6 @@ interface IContext {
node: string
pkgDirectory?: string
pkgHomepage?: string
pkgName?: string
platform: string
runScriptPath: string
version: string
Expand All @@ -28,7 +27,6 @@ const render = ({
node,
pkgDirectory,
pkgHomepage,
pkgName,
platform,
runScriptPath,
version
Expand Down Expand Up @@ -96,7 +94,6 @@ export default function(
const node = platform === 'win32' ? 'node' : runNodePath

// Env variable
const pkgName = process && process.env && process.env.npm_package_name
const pkgHomepage = process && process.env && process.env.npm_package_homepage
const pkgDirectory = process && process.env && process.env.PWD

Expand All @@ -120,7 +117,6 @@ export default function(
node,
pkgDirectory,
pkgHomepage,
pkgName,
platform,
runScriptPath,
version
Expand Down

0 comments on commit 93b4bba

Please sign in to comment.