提交 4d8c4abf 编写于 作者: fxy060608's avatar fxy060608

wip(mp): tests

上级 74a43615
......@@ -7,10 +7,12 @@ function assert(template: string, templateCode: string, renderCode: string) {
filename: 'foo.vue',
prefixIdentifiers: true,
inline: true,
emitFile({ source }) {
console.log(source)
// expect(source).toBe(templateCode)
return ''
miniProgram: {
emitFile({ source }) {
console.log(source)
// expect(source).toBe(templateCode)
return ''
},
},
})
// expect(res.template).toBe(templateCode)
......
......@@ -13,12 +13,14 @@ export function assert(
filename: 'foo.vue',
prefixIdentifiers: true,
inline: true,
emitFile({ source }) {
// console.log(source)
if (!options.onError) {
expect(source).toBe(templateCode)
}
return ''
miniProgram: {
emitFile({ source }) {
// console.log(source)
if (!options.onError) {
expect(source).toBe(templateCode)
}
return ''
},
},
...options,
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册