From 2183fea3fcd8421d0c090a39bd25d6caefcce1b2 Mon Sep 17 00:00:00 2001 From: sronveaux Date: Tue, 26 Jul 2022 16:37:56 +0200 Subject: [PATCH] Changed a test and made it async to avoid a new strange bug(https://github.com/vuejs/vue-test-utils/issues/738) --- .../components/bglayerswitcher/LayerPreviewImage.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/specs/components/bglayerswitcher/LayerPreviewImage.spec.js b/tests/unit/specs/components/bglayerswitcher/LayerPreviewImage.spec.js index 97a61e87..04982593 100644 --- a/tests/unit/specs/components/bglayerswitcher/LayerPreviewImage.spec.js +++ b/tests/unit/specs/components/bglayerswitcher/LayerPreviewImage.spec.js @@ -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'); });