Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mihar-22 committed Apr 22, 2021
1 parent 2ef9a2b commit 1033c4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/transformer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ describe('transformer', () => {
})

it('should pass and transform process.env.NODE_ENV variable', () => {
const code = runTransformer('BasicComp', { preprocess: true, rootMode: 'upward'})
const code = runTransformer('BasicComp', { preprocess: true, rootMode: 'upward' })

// JEST sets NODE_ENV to test automatically
expect(code).toContain("test")
expect(code).toContain('test')
})
})
2 changes: 1 addition & 1 deletion src/transformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const transformer = (options = {}) => (source, filename) => {
const preprocessResult = execSync(
`node --unhandled-rejections=strict --abort-on-uncaught-exception "${preprocessor}"`,
{
env: {...process.env, source, filename, svelteConfig },
env: { ...process.env, source, filename, svelteConfig },
maxBuffer: maxBuffer || 10 * 1024 * 1024
}
).toString()
Expand Down

0 comments on commit 1033c4a

Please sign in to comment.