refactor: use named export for compiled render function

This commit is contained in:
Evan You
2019-12-24 10:51:26 -05:00
parent 4d20981eb0
commit 59c595c1e8
10 changed files with 21 additions and 21 deletions

View File

@@ -19,7 +19,7 @@ describe('scopeId compiler support', () => {
})
expect(ast.helpers).toContain(WITH_SCOPE_ID)
expect(code).toMatch(`const withId = withScopeId("test")`)
expect(code).toMatch(`export default withId(function render() {`)
expect(code).toMatch(`export const render = withId(function render() {`)
expect(code).toMatchSnapshot()
})