]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
test(compiler): fix copy paste in v-once spec (#191)
authorCédric Exbrayat <cexbrayat@users.noreply.github.com>
Thu, 10 Oct 2019 17:54:22 +0000 (19:54 +0200)
committerEvan You <yyx990803@gmail.com>
Thu, 10 Oct 2019 17:54:22 +0000 (13:54 -0400)
packages/compiler-core/__tests__/transforms/vOnce.spec.ts

index 44b6e690f86b889264f9bda47adb88c50dae947e..0b6f995c866ba62d8cb244d8af907d810ffc73d1 100644 (file)
@@ -3,7 +3,7 @@ import { transformOnce } from '../../src/transforms/vOnce'
 import { transformElement } from '../../src/transforms/transformElement'
 import { createObjectMatcher } from '../testUtils'
 
-function transformWithCloak(template: string) {
+function transformWithOnce(template: string) {
   const ast = parse(template)
   transform(ast, {
     nodeTransforms: [transformElement],
@@ -16,10 +16,10 @@ function transformWithCloak(template: string) {
 
 describe('compiler: v-once transform', () => {
   test('should add no props to DOM', () => {
-    const node = transformWithCloak(`<div v-once />`)
+    const node = transformWithOnce(`<div v-once />`)
     const codegenArgs = (node.codegenNode as CallExpression).arguments
 
-    // As v-cloak adds no properties the codegen should be identical to
+    // As v-once adds no properties the codegen should be identical to
     // rendering a div with no props or reactive data (so just the tag as the arg)
     expect(codegenArgs[1]).toMatchObject(
       createObjectMatcher({