From 4ca32c537dd27a3b104b782803c7480f7706de09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Exbrayat?= Date: Thu, 10 Oct 2019 19:54:22 +0200 Subject: [PATCH] test(compiler): fix copy paste in v-once spec (#191) --- packages/compiler-core/__tests__/transforms/vOnce.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/compiler-core/__tests__/transforms/vOnce.spec.ts b/packages/compiler-core/__tests__/transforms/vOnce.spec.ts index 44b6e690f..0b6f995c8 100644 --- a/packages/compiler-core/__tests__/transforms/vOnce.spec.ts +++ b/packages/compiler-core/__tests__/transforms/vOnce.spec.ts @@ -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(`
`) + const node = transformWithOnce(`
`) 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({