Skip to content

Commit

Permalink
Changed a test and made it async to avoid a new strange bug(vuejs/vue…
Browse files Browse the repository at this point in the history
  • Loading branch information
sronveaux committed Aug 1, 2022
1 parent 3e439b7 commit 2183fea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ describe('bglayerswitcher/LayerPreviewImage.vue', () => {
expect(vm.previewURL).to.equal('https://b.tile.openstreetmap.org/2/2/2.png');
});

it('has correct previewURL for static layer image', () => {
it('has correct previewURL for static layer image', async () => {
const osmLayer2 = new TileLayer({
source: new OSM(),
previewImage: 'http://my-image.png'
});

comp.setProps({ layer: osmLayer2 });
await comp.setProps({ layer: osmLayer2 });
expect(vm.previewURL).to.equal('http://my-image.png');
});

Expand Down

0 comments on commit 2183fea

Please sign in to comment.