@@ -34,8 +34,8 @@ describe("versionBup() API", () => {
3434 expect ( files . json ( "package.json" ) ) . to . deep . equal ( { version : "2.34.567" } ) ;
3535
3636 // Git and NPM should NOT have been called
37- expect ( mocks . git ( ) ) . to . be . empty ;
38- expect ( mocks . npm ( ) ) . to . be . empty ;
37+ expect ( mocks . git ( ) ) . to . have . lengthOf ( 0 ) ;
38+ expect ( mocks . npm ( ) ) . to . have . lengthOf ( 0 ) ;
3939 } ) ;
4040
4141 it ( "should accept a bump type" , async ( ) => {
@@ -60,8 +60,8 @@ describe("versionBup() API", () => {
6060 expect ( files . json ( "package.json" ) ) . to . deep . equal ( { version : "1.1.0" } ) ;
6161
6262 // Git and NPM should NOT have been called
63- expect ( mocks . git ( ) ) . to . be . empty ;
64- expect ( mocks . npm ( ) ) . to . be . empty ;
63+ expect ( mocks . git ( ) ) . to . have . lengthOf ( 0 ) ;
64+ expect ( mocks . npm ( ) ) . to . have . lengthOf ( 0 ) ;
6565 } ) ;
6666
6767 it ( "should accept options" , async ( ) => {
@@ -124,7 +124,7 @@ describe("versionBup() API", () => {
124124 ] ) ;
125125
126126 // NPM should NOT have been called
127- expect ( mocks . npm ( ) ) . to . be . empty ;
127+ expect ( mocks . npm ( ) ) . to . have . lengthOf ( 0 ) ;
128128 } ) ;
129129
130130 it ( "should throw an error if the options are invalid" , async ( ) => {
@@ -168,8 +168,8 @@ describe("versionBup() API", () => {
168168 expect ( files . json ( "package.json" ) ) . to . deep . equal ( { version : "hello world" } ) ;
169169
170170 // Git and NPM should NOT have been called
171- expect ( mocks . git ( ) ) . to . be . empty ;
172- expect ( mocks . npm ( ) ) . to . be . empty ;
171+ expect ( mocks . git ( ) ) . to . have . lengthOf ( 0 ) ;
172+ expect ( mocks . npm ( ) ) . to . have . lengthOf ( 0 ) ;
173173 }
174174 } ) ;
175175
0 commit comments