Skip to content

Commit

Permalink
Add another case
Browse files Browse the repository at this point in the history
  • Loading branch information
aedart committed Feb 17, 2024
1 parent 28d6ca1 commit c248e06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/browser/packages/support/reflections/isSubclass.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
});

0 comments on commit c248e06

Please sign in to comment.