Skip to content

Commit 03c59d1

Browse files
committed
Add support for chai.should.
1 parent 48725b1 commit 03c59d1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/helper.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,17 @@ var chaiAsPromised = require('chai-as-promised');
77
var util = require('util');
88
var _ = require('underscore');
99

10+
var should = GLOBAL.should = chai.should();
1011
chai.use(chaiAsPromised);
12+
1113
GLOBAL.expect = chai.expect;
1214

15+
Object.defineProperty(
16+
protractor.promise.Promise.prototype,
17+
'should',
18+
Object.getOwnPropertyDescriptor(Object.prototype, 'should')
19+
);
20+
1321
var browser = GLOBAL.browser;
1422
var by = GLOBAL.by;
1523

0 commit comments

Comments
 (0)