Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Commit

Permalink
Adjust test for #91 to be more robust.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddieantonio committed Mar 5, 2019
1 parent e90a7c9 commit 6fe28cc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ describe('Concise representations of dictionary sources', function () {
.contains('.lexeme', 'âhkamêyihtam')
.as('lexeme');

let translation1 = /He keeps on thinking of what has to be done[.]?\s+MD/
let translation2 = /s\/he continues to think of future deeds or tasks[.]?\s+CW/;
let both = new RegExp(`${translation1.source};\\s+${translation2.source}|` +
`${translation2.source};\\s+${translation1.source}`);
let translation1 = /He keeps on thinking of what has to be done[.]?\s*MD/
let translation2 = /s\/he continues to think of future deeds or tasks[.]?\s*CW/;
let both = new RegExp(`${translation1.source}\\s*;\\s+${translation2.source}|` +
`${translation2.source}\\s*;\\s+${translation1.source}`);
cy.get('@lexeme').get('.meanings')
.invoke('text')
.should('match', translation1)
Expand Down

0 comments on commit 6fe28cc

Please sign in to comment.