Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-andreyev committed Nov 2, 2020
1 parent 89e01e5 commit 1d6879b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/shipit-deploy/tests/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ describe('shipit-cli', () => {

const latestRelease = lsReleases
.split('\n')
.reverse()[2]
.filter(s => s.match(/^@localhost/))
.reverse()[0]
.match(/\d{14}/)[0]

const { stdout: lsCurrent } = await exec(
`${babelNode} ${shipitCli} --shipitfile ${shipitFile} test ls-current`,
)
console.log(lsCurrent);

const currentRelease = lsCurrent
.split('\n')[3]
.split('\n')
.filter(s => s.match(/^@localhost/))[0]
.match(/releases\/(\d{14})/)[1]

expect(latestRelease).toBe(currentRelease)
Expand Down

0 comments on commit 1d6879b

Please sign in to comment.