We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38c2c1b commit 0427fabCopy full SHA for 0427fab
test.js
@@ -2,10 +2,12 @@ const transpile = require('./index')
2
const Vue = require('vue')
3
const { compile } = require('vue-template-compiler')
4
5
+process.env.BAR = 'bar'
6
+
7
test('should work', () => {
8
const res = compile(`
9
<div>
- <div>{{ foo }}</div>
10
+ <div>{{ foo }} {{ process.env.BAR }}</div>
11
<div v-for="{ name } in items">{{ name }}</div>
12
</div>
13
`)
@@ -28,5 +30,5 @@ test('should work', () => {
28
30
staticRenderFns: res.staticRenderFns.map(toFunction)
29
31
}).$mount()
32
- expect(vm.$el.innerHTML).toMatch(`<div>hello</div> <div>foo</div><div>bar</div>`)
33
+ expect(vm.$el.innerHTML).toMatch(`<div>hello bar</div> <div>foo</div><div>bar</div>`)
34
})
0 commit comments