File tree 4 files changed +8
-8
lines changed
configCases/plugins/lib-manifest-plugin
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() {
27
27
it ( "should pass query to multiple loaders" , function ( ) {
28
28
var result = require ( "./loaders/queryloader?query1!./loaders/queryloader?query2!./a?resourcequery" ) ;
29
29
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 ( {
33
33
resourceQuery : "?resourcequery" ,
34
34
query : "?query2" ,
35
35
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() {
5
5
) ( [ "./constructor" ] , ( c ) => {
6
6
return new c ( 1324 ) ;
7
7
} ) ;
8
- expect ( module . exports ) . to . have . property ( "value" ) . toEqual ( 1324 ) ;
8
+ expect ( module . exports ) . toHaveProperty ( "value" , 1324 ) ;
9
9
( ( "function" == typeof define && define . amd ?
10
10
define :
11
11
( e , t ) => { return t ( ) }
12
12
) ( [ "./constructor" ] , ( c ) => {
13
13
return new c ( 4231 ) ;
14
14
} ) ) ;
15
- expect ( module . exports ) . to . have . property ( "value" ) . toEqual ( 4231 ) ;
15
+ expect ( module . exports ) . toHaveProperty ( "value" , 4231 ) ;
16
16
} ) ;
17
17
18
18
it ( "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() {
5
5
) ( [ "./constructor" ] , function ( c ) {
6
6
return new c ( 1324 ) ;
7
7
} ) ;
8
- expect ( module . exports ) . to . have . property ( "value" ) . toEqual ( 1324 ) ;
8
+ expect ( module . exports ) . toHaveProperty ( "value" , 1324 ) ;
9
9
( ( "function" == typeof define && define . amd ?
10
10
define :
11
11
function ( e , t ) { return t ( ) }
12
12
) ( [ "./constructor" ] , function ( c ) {
13
13
return new c ( 4231 ) ;
14
14
} ) ) ;
15
- expect ( module . exports ) . to . have . property ( "value" ) . toEqual ( 4231 ) ;
15
+ expect ( module . exports ) . toHaveProperty ( "value" , 4231 ) ;
16
16
} ) ;
17
17
18
18
it ( "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() {
13
13
expect ( manifest ) . to . have . key ( "content" , "name" ) ;
14
14
expect ( manifest . content ) . not . toHaveProperty ( "./a.js" ) ;
15
15
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 ) ;
17
17
} ) ;
You can’t perform that action at this time.
0 commit comments