mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 09:37:17 +00:00
Name assertion
This commit is contained in:
parent
c34068b4df
commit
76006f497e
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue