Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
flag(key, value) {
if (typeof value == 'undefined') {
return flag(this.chaiExpect, key);
}
flag(this.chaiExpect, key, value);
return this;
}
getFlags() {
return flag(this.chaiExpect);
}
flag(key, value) {
if (typeof value == 'undefined') {
return flag(this.chaiExpect, key);
}
flag(this.chaiExpect, key, value);
return this;
}
flag(...args) {
return chai.flag(this.instance, ...args);
}