Skip to content

Commit 362692b

Browse files
authored
Map - make Azure qunits more stable
1 parent d4b8e57 commit 362692b

File tree

1 file changed

+12
-8
lines changed
  • packages/devextreme/testing/tests/DevExpress.ui.widgets/mapParts

1 file changed

+12
-8
lines changed

packages/devextreme/testing/tests/DevExpress.ui.widgets/mapParts/azureTests.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,23 @@ const prepareTestingAzureProvider = () => {
2828
const moduleConfig = {
2929
beforeEach: function() {
3030
const fakeURL = '/fakeAzureUrl';
31+
let azureMockCreated = false;
3132

3233
AzureProvider.remapConstant(fakeURL);
3334

3435
ajaxMock.setup({
3536
url: fakeURL,
3637
callback: () => {
37-
$.getScript({
38-
url: '../../packages/devextreme/testing/helpers/forMap/azureMock.js',
39-
scriptAttrs: { nonce: 'qunit-test' }
40-
}).done(() => {
41-
prepareTestingAzureProvider();
42-
});
38+
if(!azureMockCreated) {
39+
azureMockCreated = true;
40+
41+
$.getScript({
42+
url: '../../packages/devextreme/testing/helpers/forMap/azureMock.js',
43+
scriptAttrs: { nonce: 'qunit-test' },
44+
}).done(() => {
45+
prepareTestingAzureProvider();
46+
});
47+
}
4348
},
4449
responseText: {
4550
success: true,
@@ -280,8 +285,7 @@ QUnit.module('basic options', moduleConfig, () => {
280285
});
281286
});
282287

283-
// TODO Chrome133: skipped during chrome update
284-
QUnit.test.skip('center should be geocoded if adress is passed as a string', function(assert) {
288+
QUnit.test('center should be geocoded if adress is passed as a string', function(assert) {
285289
const done = assert.async();
286290
const center = 'Cedar Park, Texas';
287291

0 commit comments

Comments
 (0)