Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createInstance() {
this.promise = this.createPromise();
this.__instance = chai.expect(this.promise);
if (!this.hasAssertions) {
this.flag('valueFlag', true);
}
this.flag('emitter', this);
this.flag('api', this.client.api);
this.flag('promise', this.promise);
}
Expect.element = function(selector, using) {
var element = new Element(selector, using);
var promise = element.promise();
var expect = chai.expect(promise);
flag(expect, 'selector', selector);
flag(expect, 'promise', promise);
flag(expect, 'element', element);
return {
element : element,
expect : expect
};
};
createInstance() {
this.promise = this.createPromise();
this.__instance = chai.expect(this.promise);
flag(this.instance, 'promise', this.promise);
}