kui-utils 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/index.js CHANGED
@@ -2093,9 +2093,12 @@ var Loader = /** @class */ (function () {
2093
2093
  function Loader(isLoading, delayTime) {
2094
2094
  var _this = this;
2095
2095
  this.startLoading = function (message, withoutCleanError) {
2096
+ var runMode = kuiUtilsSettings.getSettings().runMode;
2096
2097
  _this.isLoading = true;
2097
2098
  _this.loadingMessage = message;
2098
- _this.timeBeforeLoading = new Date().getTime();
2099
+ if (runMode !== "test") {
2100
+ _this.timeBeforeLoading = new Date().getTime();
2101
+ }
2099
2102
  if (!withoutCleanError)
2100
2103
  _this.cleanError();
2101
2104
  };