mirror of
https://github.com/jlengrand/open-wc.git
synced 2026-03-10 08:31:19 +00:00
chore(testing): fix flacky dynamic import test
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
# `Plugin - sinon-chai`
|
||||
|
||||
#### `can expect a spys callCount`
|
||||
|
||||
```html
|
||||
<h1>
|
||||
My Element
|
||||
</h1>
|
||||
<p>
|
||||
hello world!
|
||||
</p>
|
||||
|
||||
```
|
||||
|
||||
@@ -7,7 +7,8 @@ describe('module-features', () => {
|
||||
});
|
||||
|
||||
it('handles dynamic imports', async () => {
|
||||
expect((await dynamicImport()).default).to.equal('dynamically imported module');
|
||||
// test if it is a promise
|
||||
expect(dynamicImport()).to.have.property('then');
|
||||
});
|
||||
|
||||
it('handles import.meta.url', async () => {
|
||||
|
||||
Reference in New Issue
Block a user