@@ -56,41 +56,41 @@ describe("AST format", () => {
5656 const input = `<!DOCTYPE html> <el attr></el>txt<!-- --><![CDATA[foo]]>` ;
5757 const ast = parse ( input ) ;
5858 expect ( ast . rootNodes ) . toEqual ( [
59- jasmine . objectContaining ( { type : "docType" } ) ,
60- jasmine . objectContaining ( { type : "text" } ) ,
61- jasmine . objectContaining ( {
59+ expect . objectContaining ( { type : "docType" } ) ,
60+ expect . objectContaining ( { type : "text" } ) ,
61+ expect . objectContaining ( {
6262 type : "element" ,
63- attrs : [ jasmine . objectContaining ( { type : "attribute" } ) ] ,
63+ attrs : [ expect . objectContaining ( { type : "attribute" } ) ] ,
6464 } ) ,
65- jasmine . objectContaining ( { type : "text" } ) ,
66- jasmine . objectContaining ( { type : "comment" } ) ,
67- jasmine . objectContaining ( { type : "cdata" } ) ,
65+ expect . objectContaining ( { type : "text" } ) ,
66+ expect . objectContaining ( { type : "comment" } ) ,
67+ expect . objectContaining ( { type : "cdata" } ) ,
6868 ] ) ;
6969 } ) ;
7070
7171 it ( "should have `type` property when tokenizeBlocks is enabled" , ( ) => {
7272 const input = `@if (user.isHuman) { <p>Hello human</p> }` ;
7373 const ast = parse ( input , { tokenizeAngularBlocks : true } ) ;
7474 expect ( ast . rootNodes ) . toEqual ( [
75- jasmine . objectContaining ( {
75+ expect . objectContaining ( {
7676 name : "if" ,
7777 type : "block" ,
7878 parameters : [
79- jasmine . objectContaining ( {
79+ expect . objectContaining ( {
8080 type : "blockParameter" ,
8181 expression : "user.isHuman" ,
8282 } ) ,
8383 ] ,
8484 children : [
85- jasmine . objectContaining ( { type : "text" , value : " " } ) ,
86- jasmine . objectContaining ( {
85+ expect . objectContaining ( { type : "text" , value : " " } ) ,
86+ expect . objectContaining ( {
8787 type : "element" ,
8888 name : "p" ,
8989 children : [
90- jasmine . objectContaining ( { type : "text" , value : "Hello human" } ) ,
90+ expect . objectContaining ( { type : "text" , value : "Hello human" } ) ,
9191 ] ,
9292 } ) ,
93- jasmine . objectContaining ( { type : "text" , value : " " } ) ,
93+ expect . objectContaining ( { type : "text" , value : " " } ) ,
9494 ] ,
9595 } ) ,
9696 ] ) ;
0 commit comments