@@ -29,9 +29,9 @@ const mockVerifyCommandDeployments = verifyCommandDeployments as Mock<
2929vi . mock ( '../logger.js' ) ;
3030
3131// Import the code to test
32- import { ready } from './ready .js' ;
32+ import { clientReady } from './clientReady .js' ;
3333
34- describe ( 'once(ready )' , ( ) => {
34+ describe ( 'once(clientReady )' , ( ) => {
3535 const client = {
3636 user : { username : 'Ze Kaiser Jr.' } ,
3737 destroy ( ) {
@@ -56,7 +56,7 @@ describe('once(ready)', () => {
5656 deploy : false ,
5757 revoke : false ,
5858 } ) ;
59- await ready . execute ( client ) ;
59+ await clientReady . execute ( client ) ;
6060 expect ( mockDeployCommands ) . not . toHaveBeenCalled ( ) ;
6161 expect ( mockRevokeCommands ) . not . toHaveBeenCalled ( ) ;
6262 } ) ;
@@ -66,7 +66,7 @@ describe('once(ready)', () => {
6666 deploy : true ,
6767 revoke : false ,
6868 } ) ;
69- await ready . execute ( client ) ;
69+ await clientReady . execute ( client ) ;
7070 expect ( mockDeployCommands ) . toHaveBeenCalledWith ( client ) ;
7171 expect ( mockRevokeCommands ) . not . toHaveBeenCalled ( ) ;
7272 } ) ;
@@ -76,7 +76,7 @@ describe('once(ready)', () => {
7676 deploy : false ,
7777 revoke : true ,
7878 } ) ;
79- await ready . execute ( client ) ;
79+ await clientReady . execute ( client ) ;
8080 expect ( mockDeployCommands ) . not . toHaveBeenCalled ( ) ;
8181 expect ( mockRevokeCommands ) . toHaveBeenCalledWith ( client ) ;
8282 } ) ;
@@ -86,13 +86,13 @@ describe('once(ready)', () => {
8686 deploy : true ,
8787 revoke : true ,
8888 } ) ;
89- await ready . execute ( client ) ;
89+ await clientReady . execute ( client ) ;
9090 expect ( mockDeployCommands ) . toHaveBeenCalledWith ( client ) ;
9191 expect ( mockRevokeCommands ) . not . toHaveBeenCalled ( ) ;
9292 } ) ;
9393
9494 test ( 'verifies command deployments' , async ( ) => {
95- await ready . execute ( client ) ;
95+ await clientReady . execute ( client ) ;
9696 expect ( mockVerifyCommandDeployments ) . toHaveBeenCalledWith ( client ) ;
9797 } ) ;
9898} ) ;
0 commit comments