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