File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
configCases/plugins/lib-manifest-plugin Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ it("should pass query to loader without resource", function() {
2727it ( "should pass query to multiple loaders" , function ( ) {
2828 var result = require ( "./loaders/queryloader?query1!./loaders/queryloader?query2!./a?resourcequery" ) ;
2929 expect ( result ) . toBeTypeOf ( "object" ) ;
30- expect ( result ) . to . have . property ( "resourceQuery" ) . toEqual ( "?resourcequery" ) ;
31- expect ( result ) . to . have . property ( "query" ) . toEqual ( "?query1" ) ;
32- expect ( result ) . to . have . property ( "prev" ) . toEqual ( "module.exports = " + JSON . stringify ( {
30+ expect ( result ) . toHaveProperty ( "resourceQuery" , "?resourcequery" ) ;
31+ expect ( result ) . toHaveProperty ( "query" , "?query1" ) ;
32+ expect ( result ) . toHaveProperty ( "prev" , "module.exports = " + JSON . stringify ( {
3333 resourceQuery : "?resourcequery" ,
3434 query : "?query2" ,
3535 prev : "module.exports = \"a\";"
Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ it("should parse fancy function calls with arrow functions", function() {
55 ) ( [ "./constructor" ] , ( c ) => {
66 return new c ( 1324 ) ;
77 } ) ;
8- expect ( module . exports ) . to . have . property ( "value" ) . toEqual ( 1324 ) ;
8+ expect ( module . exports ) . toHaveProperty ( "value" , 1324 ) ;
99 ( ( "function" == typeof define && define . amd ?
1010 define :
1111 ( e , t ) => { return t ( ) }
1212 ) ( [ "./constructor" ] , ( c ) => {
1313 return new c ( 4231 ) ;
1414 } ) ) ;
15- expect ( module . exports ) . to . have . property ( "value" ) . toEqual ( 4231 ) ;
15+ expect ( module . exports ) . toHaveProperty ( "value" , 4231 ) ;
1616} ) ;
1717
1818it ( "should parse fancy AMD calls with arrow functions" , function ( ) {
Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ it("should parse fancy function calls", function() {
55 ) ( [ "./constructor" ] , function ( c ) {
66 return new c ( 1324 ) ;
77 } ) ;
8- expect ( module . exports ) . to . have . property ( "value" ) . toEqual ( 1324 ) ;
8+ expect ( module . exports ) . toHaveProperty ( "value" , 1324 ) ;
99 ( ( "function" == typeof define && define . amd ?
1010 define :
1111 function ( e , t ) { return t ( ) }
1212 ) ( [ "./constructor" ] , function ( c ) {
1313 return new c ( 4231 ) ;
1414 } ) ) ;
15- expect ( module . exports ) . to . have . property ( "value" ) . toEqual ( 4231 ) ;
15+ expect ( module . exports ) . toHaveProperty ( "value" , 4231 ) ;
1616} ) ;
1717
1818it ( "should parse fancy AMD calls" , function ( ) {
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ it("should write the correct manifest", function() {
1313 expect ( manifest ) . to . have . key ( "content" , "name" ) ;
1414 expect ( manifest . content ) . not . toHaveProperty ( "./a.js" ) ;
1515 expect ( manifest . content ) . toHaveProperty ( "./index.js" ) ;
16- expect ( manifest . content [ "./index.js" ] ) . to . have . property ( "id" ) . toEqual ( module . id ) ;
16+ expect ( manifest . content [ "./index.js" ] ) . toHaveProperty ( "id" , module . id ) ;
1717} ) ;
You can’t perform that action at this time.
0 commit comments