document and cleanup
This commit is contained in:
parent
8dee106a12
commit
a4a64bdb21
2 changed files with 29 additions and 3 deletions
|
@ -6,7 +6,6 @@ function hidePartMatcher(partName) {
|
|||
const isHidden = this._obj.__isPartHidden(partName)
|
||||
if (!this._obj.config.parts[partName]) {
|
||||
throw new chai.AssertionError(`expected part \`${partName}\` to exist in pattern`)
|
||||
this.fail()
|
||||
}
|
||||
this.assert(
|
||||
isHidden,
|
||||
|
@ -19,7 +18,6 @@ function hidePartsMatcher(...partNames) {
|
|||
const hiddens = partNames.map((n) => {
|
||||
if (!this._obj.config.parts[n]) {
|
||||
throw new chai.AssertionError(`expected part \`${n}\` to exist in pattern`)
|
||||
this.fail()
|
||||
}
|
||||
return this._obj.__isPartHidden(n)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue