How to pass assertions with JS-Cucumber?

How can I pass assertions with JS-Cucumber?

Hi Macy,

You can refer to our sample code snippet below or go to our support page for the same:

this.Then(/^I must see title "([^"]*)"$/, function (titleMatch, next) {
    this.driver.getTitle()
      .then(function(title) {
        assert.equal(title, titleMatch, next, 'Expected title to be ' + titleMatch);