Skip to content

Commit

Permalink
Update to identify fixture file related to conda
Browse files Browse the repository at this point in the history
Updated noticeTest.js to identify conda related fixture file. There are many '-' in the component's name hence using components variable to find exact coordinate.
  • Loading branch information
yashkohli88 committed Oct 30, 2024
1 parent ca43d9d commit 93bc60e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const fs = require('fs')

before(() => {
loadFixtures().forEach(([coordinatesString, notice]) => {
if(coordinatesString.includes('conda')) coordinatesString = components.filter(component => component.includes('conda'))[0]
nock(prodApiBaseUrl, { allowUnmocked: true })
.post('/notices', { coordinates: [coordinatesString] })
.reply(200, notice)
Expand Down

0 comments on commit 93bc60e

Please sign in to comment.