Then(/^the top-level endpoints should be included$/, function (callback) { const {paths} = JSON.parse(this.getResponseBody()); assert.defined(paths['/rides']); assert.defined(paths['/persons']); callback(); });