UNPKG
warriorjs-engine
Version:
latest (1.0.0)
next (2.0.0-alpha.4)
2.0.0-alpha.4
2.0.0-alpha.3
2.0.0-alpha.2
2.0.0-alpha.1
1.0.0
0.11.0
0.10.2
0.10.1
0.10.0
0.9.0
0.8.1
0.8.0
0.7.0
0.6.0
0.5.0
0.4.2
0.4.1
0.4.0
0.3.0
0.2.1
0.2.0
0.1.1
The bowels of WarriorJS
github.com/olistic/warriorjs-engine
olistic/warriorjs-engine
warriorjs-engine
/
test
/
helpers
/
chaiBound.js
14 lines
(11 loc)
•
280 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function
chaiBound
(
chai
) {
const
Assertion
= chai.
Assertion
;
Assertion
.
addProperty
(
'bound'
,
function
getter
(
) {
this
.
assert
(
this
.
_obj
.
isBound
(),
'expected #{this} to be bound'
,
'expected #{this} to be unbound'
); }); }
export
default
chaiBound;