MCPcopy
hub / github.com/meteor/meteor / instanceOf

Method instanceOf

packages/tinytest/tinytest.js:159–164  ·  view source on GitHub ↗
(obj, klass, message)

Source from the content-addressed store, hash-verified

157 }
158
159 instanceOf(obj, klass, message) {
160 if (obj instanceof klass)
161 this.ok();
162 else
163 this.fail({type: "instanceOf", message: message, not: false}); // XXX what other data?
164 }
165
166 notInstanceOf(obj, klass, message) {
167 if (obj instanceof klass)

Callers 13

promise-tests.jsFile · 0.80
accounts_tests.jsFile · 0.80
onFailedLoginFunction · 0.80
httpcall_tests.jsFile · 0.80
exceptionFunction · 0.80
logBothMessageAndObjectFunction · 0.80
oauth_tests.jsFile · 0.80
failureFunction · 0.80
livedata_tests.jsFile · 0.80
runtime-tests.jsFile · 0.80

Calls 2

okMethod · 0.95
failMethod · 0.95

Tested by

no test coverage detected