Name assertion

This commit is contained in:
Jordan Eldredge 2019-09-28 15:49:01 -07:00
parent c34068b4df
commit 76006f497e

View file

@ -47,7 +47,9 @@ for (const [key, Klass] of Object.entries(runtime)) {
// For now we have a separate test which checks that we haven't
// regressed on the methods we've implemented.
const hasMethodOnSelf = Klass.prototype.hasOwnProperty(methodName);
expect(hasMethodOnSelf).toBe(true);
test(`Has the method ${obj.name}.${func.name}`, () => {
expect(hasMethodOnSelf).toBe(true);
});
if (!hasMethodOnSelf) {
return;
}