Skip to content

Commit

Permalink
Merge pull request #13 from ryotah/fix/fix-template-object-key
Browse files Browse the repository at this point in the history
Fix the key name of template object (`filename` -> `fileName`)
  • Loading branch information
samtgarson authored Feb 15, 2019
2 parents 372e284 + bba9577 commit 9aa03f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ module.exports = function NuxtEnv ({ keys }) {
const src = path.resolve(__dirname, 'lib/plugin.js')
this.addPlugin({
src,
filename: 'nuxt-env'
fileName: 'nuxt-env.js'
})
}
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('Module', () => {
expect(FakeModule.addPlugin).toHaveBeenCalled()
const { calls: { 0: { 0: calls } } } = FakeModule.addPlugin.mock

expect(calls.filename).toEqual('nuxt-env')
expect(calls.fileName).toEqual('nuxt-env.js')
expect(calls.src).toMatch(/lib\/plugin\.js/)
})
})

0 comments on commit 9aa03f0

Please sign in to comment.