Skip to content

Commit

Permalink
Fix broken module version check
Browse files Browse the repository at this point in the history
  • Loading branch information
pandaskii committed Sep 11, 2023
1 parent 3d923a2 commit ed55c21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cy/cypress/integration/1-baseline/modules.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ let modules = Object.entries(packages['require']).filter((str) => {
describe('Cross check module and library versions', () => {
modules.forEach((module, i) => {
it(`${module}`, () => {
cy.composerCommand('show ' + module[0] + ' | grep versions').its('stdout').should('contain', module[1])
const moduleVersion = module[1].substring(0, module[1].indexOf(" as"));
cy.composerCommand('show ' + module[0] + ' | grep versions').its('stdout').should('contain', moduleVersion)
})
})
})

0 comments on commit ed55c21

Please sign in to comment.