We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 372e284 + bba9577 commit 9aa03f0Copy full SHA for 9aa03f0
index.js
@@ -13,6 +13,6 @@ module.exports = function NuxtEnv ({ keys }) {
13
const src = path.resolve(__dirname, 'lib/plugin.js')
14
this.addPlugin({
15
src,
16
- filename: 'nuxt-env'
+ fileName: 'nuxt-env.js'
17
})
18
}
test/index.js
@@ -26,7 +26,7 @@ describe('Module', () => {
26
expect(FakeModule.addPlugin).toHaveBeenCalled()
27
const { calls: { 0: { 0: calls } } } = FakeModule.addPlugin.mock
28
29
- expect(calls.filename).toEqual('nuxt-env')
+ expect(calls.fileName).toEqual('nuxt-env.js')
30
expect(calls.src).toMatch(/lib\/plugin\.js/)
31
32
0 commit comments