From c248e06972628b598a6054af4ff380ca323ace93 Mon Sep 17 00:00:00 2001 From: Alin Eugen Deac Date: Sat, 17 Feb 2024 19:06:25 +0100 Subject: [PATCH] Add another case --- .../browser/packages/support/reflections/isSubclass.test.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/browser/packages/support/reflections/isSubclass.test.js b/tests/browser/packages/support/reflections/isSubclass.test.js index 1ad66221..61b2f1d7 100644 --- a/tests/browser/packages/support/reflections/isSubclass.test.js +++ b/tests/browser/packages/support/reflections/isSubclass.test.js @@ -33,9 +33,14 @@ describe('@aedart/support/reflections', () => { class A {} class B extends A {} class C extends B {} + class D extends A {} expect(isSubclass(C, A)) .toBeTrue(); + + expect(isSubclass(D, B)) + .withContext('D should not be a subclass of B') + .toBeFalse(); }); }); }); \ No newline at end of file