Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 084b83f

Browse files
committed
test(matchers): add toBeOneOf matcher
1 parent bf5e5f7 commit 084b83f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/testabilityPatch.js

+5
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ beforeEach(function(){
120120
};
121121

122122
return this.actual.callCount == 1;
123+
},
124+
125+
126+
toBeOneOf: function() {
127+
return angularArray.indexOf(arguments, this.actual) !== -1;
123128
}
124129
});
125130

0 commit comments

Comments
 (0)