@@ -10,7 +10,7 @@ describe('HomebrewPublisher', function () {
1010 let homebrewCore : GithubRepo ;
1111 let homebrewCoreFork : GithubRepo ;
1212 let createPullRequest : sinon . SinonStub ;
13- let httpsSha256 : sinon . SinonStub ;
13+ let npmPackageSha256 : sinon . SinonStub ;
1414 let generateFormula : sinon . SinonStub ;
1515 let updateHomebrewFork : sinon . SinonStub ;
1616
@@ -41,7 +41,7 @@ describe('HomebrewPublisher', function () {
4141 homebrewCoreFork,
4242 } ) ;
4343
44- httpsSha256 = sinon . stub ( testPublisher , 'httpsSha256 ' ) ;
44+ npmPackageSha256 = sinon . stub ( testPublisher , 'npmPackageSha256 ' ) ;
4545 generateFormula = sinon . stub ( testPublisher , 'generateFormula' ) ;
4646 updateHomebrewFork = sinon . stub ( testPublisher , 'updateHomebrewFork' ) ;
4747 } ;
@@ -61,11 +61,9 @@ describe('HomebrewPublisher', function () {
6161 isDryRun : false ,
6262 } ) ;
6363
64- httpsSha256
64+ npmPackageSha256
6565 . rejects ( )
66- . withArgs (
67- 'https://registry.npmjs.org/@mongosh/cli-repl/-/cli-repl-1.0.0.tgz'
68- )
66+ . withArgs ( 'https://registry.npmjs.org/@mongosh/cli-repl/1.0.0' )
6967 . resolves ( 'sha' ) ;
7068
7169 generateFormula
@@ -97,7 +95,7 @@ describe('HomebrewPublisher', function () {
9795
9896 await testPublisher . publish ( ) ;
9997
100- expect ( httpsSha256 ) . to . have . been . called ;
98+ expect ( npmPackageSha256 ) . to . have . been . called ;
10199 expect ( generateFormula ) . to . have . been . called ;
102100 expect ( updateHomebrewFork ) . to . have . been . called ;
103101 expect ( createPullRequest ) . to . have . been . called ;
@@ -110,11 +108,9 @@ describe('HomebrewPublisher', function () {
110108 isDryRun : false ,
111109 } ) ;
112110
113- httpsSha256
111+ npmPackageSha256
114112 . rejects ( )
115- . withArgs (
116- 'https://registry.npmjs.org/@mongosh/cli-repl/-/cli-repl-1.0.0.tgz'
117- )
113+ . withArgs ( 'https://registry.npmjs.org/@mongosh/cli-repl/1.0.0' )
118114 . resolves ( 'sha' ) ;
119115
120116 generateFormula
@@ -136,18 +132,16 @@ describe('HomebrewPublisher', function () {
136132
137133 await testPublisher . publish ( ) ;
138134
139- expect ( httpsSha256 ) . to . have . been . called ;
135+ expect ( npmPackageSha256 ) . to . have . been . called ;
140136 expect ( generateFormula ) . to . have . been . called ;
141137 expect ( updateHomebrewFork ) . to . have . been . called ;
142138 expect ( createPullRequest ) . to . not . have . been . called ;
143139 } ) ;
144140
145141 it ( 'silently ignores an error while deleting the PR branch' , async function ( ) {
146- httpsSha256
142+ npmPackageSha256
147143 . rejects ( )
148- . withArgs (
149- 'https://registry.npmjs.org/@mongosh/cli-repl/-/cli-repl-1.0.0.tgz'
150- )
144+ . withArgs ( 'https://registry.npmjs.org/@mongosh/cli-repl/1.0.0' )
151145 . resolves ( 'sha' ) ;
152146
153147 generateFormula
@@ -179,7 +173,7 @@ describe('HomebrewPublisher', function () {
179173
180174 await testPublisher . publish ( ) ;
181175
182- expect ( httpsSha256 ) . to . have . been . called ;
176+ expect ( npmPackageSha256 ) . to . have . been . called ;
183177 expect ( generateFormula ) . to . have . been . called ;
184178 expect ( updateHomebrewFork ) . to . have . been . called ;
185179 expect ( createPullRequest ) . to . have . been . called ;
0 commit comments