Skip to content

Commit

Permalink
refactor: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
aghArdeshir committed Oct 5, 2024
1 parent 985c83c commit 0a3b955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui/components/core/test/SlotMixin.polyfill.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { LitElement } from 'lit';

it('supports scoped elements when polyfill loaded', async () => {
// @ts-ignore the scoped-custom-element-registry polyfill makes sure `ShadowRoot.prototype.createElement` is defined
const spy = sinon.spy(ShadowRoot.prototype, 'createElement');
const createElementSpy = sinon.spy(ShadowRoot.prototype, 'createElement');

class ScopedEl extends LitElement {}

Expand Down Expand Up @@ -36,5 +36,5 @@ it('supports scoped elements when polyfill loaded', async () => {
const tag = unsafeStatic(tagName);
await fixture(html`<${tag}></${tag}>`);

expect(spy.getCalls()).to.have.length(1);
expect(createElementSpy.getCalls()).to.have.length(1);
});

0 comments on commit 0a3b955

Please sign in to comment.