Skip to content

Commit

Permalink
Core: common default export + bring back executeAsyncMock 10 line
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanblinov2k17 committed Oct 11, 2024
1 parent 6cadf2f commit ccd66d3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions packages/devextreme/js/__internal/core/utils/m_common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,3 +328,24 @@ export const equalByValue = (value1, value2, options = DEFAULT_EQUAL_BY_VALUE_OP
const compareOptions = { ...DEFAULT_EQUAL_BY_VALUE_OPTS, ...options };
return compareByValue(value1, value2, 0, compareOptions);
};

export default {
ensureDefined,
executeAsync,
deferRender,
deferUpdate,
deferRenderer,
deferUpdater,
findBestMatches,
splitPair,
normalizeKey,
denormalizeKey,
pairToObject,
getKeyHash,
escapeRegExp,
applyServerDecimalSeparator,
noop,
asyncNoop,
grep,
equalByValue
}
2 changes: 1 addition & 1 deletion packages/devextreme/testing/helpers/executeAsyncMock.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
root.DevExpress.testing.executeAsyncMock = module.exports = factory(require('__internal/core/utils/m_common').default);
});
} else {
root.DevExpress.testing.executeAsyncMock = factory(DevExpress.require('__internal/core/utils/m_common'));
root.DevExpress.testing.executeAsyncMock = factory(DevExpress.utils.common);
}
}(window, function(commonUtils) {
const originalExecuteAsync = commonUtils.executeAsync;
Expand Down

0 comments on commit ccd66d3

Please sign in to comment.