From 76006f497e77de2a641700cd7c50a3cb720c2573 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sat, 28 Sep 2019 15:49:01 -0700 Subject: [PATCH] Name assertion --- modern/src/maki-interpreter/objects.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modern/src/maki-interpreter/objects.test.js b/modern/src/maki-interpreter/objects.test.js index 66d65b6e..a8a1bd30 100644 --- a/modern/src/maki-interpreter/objects.test.js +++ b/modern/src/maki-interpreter/objects.test.js @@ -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; }