From 904d9c9a819abf8ee503a068fd47ec7c673924d1 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 5 Dec 2017 11:20:33 -0500 Subject: [PATCH] test: fix weex test case --- test/weex/compiler/compile.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/weex/compiler/compile.spec.js b/test/weex/compiler/compile.spec.js index cd69c741..7a717f19 100644 --- a/test/weex/compiler/compile.spec.js +++ b/test/weex/compiler/compile.spec.js @@ -32,12 +32,12 @@ describe('compile basic', () => { it('should compile unary tag', () => { const inputCase = compile(`
abc
`) - expect(inputCase.render).toMatch(strToRegExp(`return _m(0,false,false)`)) + expect(inputCase.render).toMatch(strToRegExp(`return _m(0)`)) expect(inputCase.staticRenderFns).toMatch(strToRegExp(`_c('div',[_c('input'),_c('text',[_v("abc")])])`)) expect(inputCase.errors).toEqual([]) const imageCase = compile(`
abc
`) - expect(imageCase.render).toMatch(strToRegExp(`return _m(0,false,false)`)) + expect(imageCase.render).toMatch(strToRegExp(`return _m(0)`)) expect(imageCase.staticRenderFns).toMatch(strToRegExp(`_c('div',[_c('image',{attrs:{"src":"path"}}),_c('text',[_v("abc")])])`)) expect(imageCase.errors).toEqual([]) @@ -54,7 +54,7 @@ describe('compile basic', () => { `) - expect(complexCase.render).toMatch(strToRegExp(`return _m(0,false,false)`)) + expect(complexCase.render).toMatch(strToRegExp(`return _m(0)`)) expect(complexCase.staticRenderFns).toMatch(strToRegExp(`_c('image',{attrs:{"src":"path"}}),_c('image'),_c('div'`)) expect(complexCase.staticRenderFns).toMatch(strToRegExp(`_c('div',[_c('embed'),_c('text',[_v("start")]),_c('input',{attrs:{"type":"text"}}),_c('input',{attrs:{"type":"url"}}),_c('text',[_v("end")])]`)) expect(complexCase.errors).toEqual([])