1

How do you create an or'd condition with should.js. i.e. something like

cityName.should.startWith('A').or.companyName.should.startWith('B');

... But this is not valid syntax. Either clause works fine independently but I don't know how to combine them. What is a valid way to express this?

Jay Traband
  • 17,053
  • 1
  • 23
  • 44

0 Answers0