@@ -223,37 +223,34 @@ describe("compareAndPublish", () => {
223223 await expect ( result ) . rejects . toThrow ( errors . NpmCallError ) ;
224224 } ) ;
225225
226- it . each ( [ "EPUBLISHCONFLICT" , "E409" ] ) (
227- "should allow an %s error from npm publish" ,
228- async ( errorCode ) => {
229- when ( callNpmCli < "publish" > )
230- . calledWith ( "publish" , [ "." ] , {
231- logger,
232- environment,
233- ignoreScripts : false ,
234- } )
235- . thenResolve ( {
236- successData : undefined ,
237- errorCode,
238- error : new errors . NpmCallError ( "publish" , 1 , "oh no" ) ,
239- } ) ;
240-
241- const result = await subject . compareAndPublish (
242- manifest ,
243- normalizedOptions ,
244- environment
245- ) ;
246-
247- expect ( result ) . toEqual ( {
248- id : undefined ,
249- files : [ ] ,
250- oldVersion : "0.0.1" ,
251- type : undefined ,
226+ it ( "should allow an EPUBLISHCONFLICT error from npm publish" , async ( ) => {
227+ when ( callNpmCli < "publish" > )
228+ . calledWith ( "publish" , [ "." ] , {
229+ logger,
230+ environment,
231+ ignoreScripts : false ,
232+ } )
233+ . thenResolve ( {
234+ successData : undefined ,
235+ errorCode : "EPUBLISHCONFLICT" ,
236+ error : new errors . NpmCallError ( "publish" , 1 , "oh no" ) ,
252237 } ) ;
253- }
254- ) ;
255238
256- it ( "should raise a non-EPUBLISHCONFLIG from npm publish" , async ( ) => {
239+ const result = await subject . compareAndPublish (
240+ manifest ,
241+ normalizedOptions ,
242+ environment
243+ ) ;
244+
245+ expect ( result ) . toEqual ( {
246+ id : undefined ,
247+ files : [ ] ,
248+ oldVersion : "0.0.1" ,
249+ type : undefined ,
250+ } ) ;
251+ } ) ;
252+
253+ it ( "should raise a non-EPUBLISHCONFLICT from npm publish" , async ( ) => {
257254 when ( callNpmCli < "publish" > )
258255 . calledWith ( "publish" , [ "." ] , {
259256 logger,
0 commit comments