chore: fix typos (#103)

This commit is contained in:
Vladimir
2019-10-05 21:48:54 +07:00
committed by Evan You
parent ec8f7c6375
commit f48a2ffc76
10 changed files with 26 additions and 26 deletions

View File

@@ -267,7 +267,7 @@ describe('compiler: transform', () => {
}
}
test('no chidlren', () => {
test('no children', () => {
const ast = transformWithCodegen(``)
expect(ast.codegenNode).toBeUndefined()
})

View File

@@ -50,7 +50,7 @@ function parseWithElementTransform(
}
describe('compiler: element transform', () => {
test('import + resovle component', () => {
test('import + resolve component', () => {
const { root } = parseWithElementTransform(`<Foo/>`)
expect(root.imports).toContain(RESOLVE_COMPONENT)
expect(root.statements[0]).toMatch(`${RESOLVE_COMPONENT}("Foo")`)
@@ -575,7 +575,7 @@ describe('compiler: element transform', () => {
expect(node2.arguments.length).toBe(4)
expect(node2.arguments[3]).toBe(`${PatchFlags.TEXT} /* TEXT */`)
// multiple nodes, merged with optimze text
// multiple nodes, merged with optimize text
const { node: node3 } = parseWithBind(`<div>foo {{ bar }} baz</div>`)
expect(node3.arguments.length).toBe(4)
expect(node3.arguments[3]).toBe(`${PatchFlags.TEXT} /* TEXT */`)