Skip to content

Commit fcd0e97

Browse files
committed
ENGCOM-396: Update JS Unit test randomly failing on Travis CI
1 parent 3ce271c commit fcd0e97

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/form/components/collection.test.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,7 @@ define([
1212
'use strict';
1313

1414
describe('Magento_Ui/js/form/components/collection', function () {
15-
16-
var obj = new Constr({
17-
provider: 'provName',
18-
name: '',
19-
index: ''
20-
});
15+
var obj;
2116

2217
registry.set('provName', {
2318
/** Stub */
@@ -30,6 +25,12 @@ define([
3025
set: function () {}
3126
});
3227

28+
obj = new Constr({
29+
provider: 'provName',
30+
name: '',
31+
index: ''
32+
});
33+
3334
describe('"initElement" method', function () {
3435
it('Check for defined ', function () {
3536
expect(obj.hasOwnProperty('initElement')).toBeDefined();

0 commit comments

Comments
 (0)