Skip to content

Commit

Permalink
Add cache coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Stramel committed May 13, 2021
1 parent ec4dbcc commit e4fe658
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test/util_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ describe('util', () => {
describe('isCustomElement', () => {
it('should parse direct sub classes of HTMLElement', () => {
const doc = parseExpr(`class Foo extends HTMLElement {}`);
util.isCustomElement(mockContext, doc); // Primes the cache
expect(util.isCustomElement(mockContext, doc)).to.equal(true);
});

Expand Down

0 comments on commit e4fe658

Please sign in to comment.