@@ -13,7 +13,7 @@ it("should handle named chunks", function(done) {
1313 require . ensure ( [ ] , function ( require ) {
1414 require ( "./empty?c" ) ;
1515 require ( "./empty?d" ) ;
16- sync . should . be . ok ( ) ;
16+ expect ( sync ) . toBeTruthy ( ) ;
1717 done ( ) ;
1818 } , "named-chunk" ) ;
1919 }
@@ -22,10 +22,10 @@ it("should handle named chunks", function(done) {
2222it ( "should handle empty named chunks" , function ( done ) {
2323 var sync = false ;
2424 require . ensure ( [ ] , function ( require ) {
25- sync . should . be . ok ( ) ;
25+ expect ( sync ) . toBeTruthy ( ) ;
2626 } , "empty-named-chunk" ) ;
2727 require . ensure ( [ ] , function ( require ) {
28- sync . should . be . ok ( ) ;
28+ expect ( sync ) . toBeTruthy ( ) ;
2929 done ( ) ;
3030 } , "empty-named-chunk" ) ;
3131 sync = true ;
@@ -49,7 +49,7 @@ it("should handle named chunks when there is an error callback", function(done)
4949 require . ensure ( [ ] , function ( require ) {
5050 require ( "./empty?g" ) ;
5151 require ( "./empty?h" ) ;
52- sync . should . be . ok ( ) ;
52+ expect ( sync ) . toBeTruthy ( ) ;
5353 done ( ) ;
5454 } , function ( error ) { } , "named-chunk-for-error-callback" ) ;
5555 }
@@ -58,10 +58,10 @@ it("should handle named chunks when there is an error callback", function(done)
5858it ( "should handle empty named chunks when there is an error callback" , function ( done ) {
5959 var sync = false ;
6060 require . ensure ( [ ] , function ( require ) {
61- sync . should . be . ok ( ) ;
61+ expect ( sync ) . toBeTruthy ( ) ;
6262 } , function ( error ) { } , "empty-named-chunk-for-error-callback" ) ;
6363 require . ensure ( [ ] , function ( require ) {
64- sync . should . be . ok ( ) ;
64+ expect ( sync ) . toBeTruthy ( ) ;
6565 done ( ) ;
6666 } , function ( error ) { } , "empty-named-chunk-for-error-callback" ) ;
6767 sync = true ;
@@ -75,13 +75,13 @@ it("should be able to use named chunks in import()", function(done) {
7575 import ( "./empty?import1-in-chunk1" /* webpackChunkName: "import-named-chunk-1" */ ) . then ( function ( result ) {
7676 var i = 0 ;
7777 import ( "./empty?import2-in-chunk1" /* webpackChunkName: "import-named-chunk-1" */ ) . then ( function ( result ) {
78- sync . should . be . ok ( ) ;
78+ expect ( sync ) . toBeTruthy ( ) ;
7979 if ( i ++ > 0 ) done ( ) ;
8080 } ) . catch ( function ( err ) {
8181 done ( err ) ;
8282 } ) ;
8383 import ( "./empty?import3-in-chunk2" /* webpackChunkName: "import-named-chunk-2" */ ) . then ( function ( result ) {
84- sync . should . not . be . ok ( ) ;
84+ expect ( sync ) . toBeFalsy ( ) ;
8585 if ( i ++ > 0 ) done ( ) ;
8686 } ) . catch ( function ( err ) {
8787 done ( err ) ;
@@ -99,13 +99,13 @@ it("should be able to use named chunk in context import()", function(done) {
9999 import ( "./e" + mpty + "2" /* webpackChunkName: "context-named-chunk" */ ) . then ( function ( result ) {
100100 var i = 0 ;
101101 import ( "./e" + mpty + "3" /* webpackChunkName: "context-named-chunk" */ ) . then ( function ( result ) {
102- sync . should . be . ok ( ) ;
102+ expect ( sync ) . toBeTruthy ( ) ;
103103 if ( i ++ > 0 ) done ( ) ;
104104 } ) . catch ( function ( err ) {
105105 done ( err ) ;
106106 } ) ;
107107 import ( "./e" + mpty + "4" /* webpackChunkName: "context-named-chunk-2" */ ) . then ( function ( result ) {
108- sync . should . not . be . ok ( ) ;
108+ expect ( sync ) . toBeFalsy ( ) ;
109109 if ( i ++ > 0 ) done ( ) ;
110110 } ) . catch ( function ( err ) {
111111 done ( err ) ;
0 commit comments