From 48d36e6b61ba76b2122590e4a5b410092dcab377 Mon Sep 17 00:00:00 2001 From: ksercs Date: Tue, 14 Dec 2021 10:46:53 +0300 Subject: [PATCH] migrate to 12.0.1 version --- package-lock.json | 786 +++++++----------- package.json | 3 +- .../componentRegistration.tests.js | 4 +- .../modelIntegration.tests.js | 2 +- .../focus.tests.js | 4 +- .../headerFilter.tests.js | 2 +- .../calendar.tests.js | 10 +- .../fileUploader.tests.js | 28 +- .../tagBox.tests.js | 2 +- .../validationSummary.markup.tests.js | 2 +- .../appointment.templates.tests.js | 5 +- .../appointments.tests.js | 2 +- .../virtual_scrolling.integration.tests.js | 4 +- .../virtual_scrolling.monthView.tests.js | 4 +- .../virtual_scrolling.tests.js | 4 +- .../virtual_scrolling.timeline.tests.js | 5 +- .../dataController.tests.js | 2 +- .../treeList.tests.js | 2 +- .../DevExpress.ui.widgets/draggable.tests.js | 4 +- .../fileManagerParts/contextMenu.tests.js | 2 +- .../listParts/liveUpdateTests.js | 2 +- .../DevExpress.viz.core/baseAxis.tests.js | 2 +- .../funnel.base.tests.js | 2 +- .../DevExpress.viz.gauges/barGauge.tests.js | 8 +- .../DevExpress.viz.gauges/common.tests.js | 6 +- .../common.part3.tests.js | 4 +- .../sankey.base.tests.js | 4 +- .../DevExpress.viz.treeMap/drilldown.tests.js | 6 +- .../DevExpress.viz.treeMap/hover.tests.js | 10 +- .../DevExpress.viz.treeMap/selection.tests.js | 12 +- .../DevExpress.viz.treeMap/tracker.tests.js | 6 +- 31 files changed, 365 insertions(+), 574 deletions(-) diff --git a/package-lock.json b/package-lock.json index e89a881091a..47072b77777 100644 --- a/package-lock.json +++ b/package-lock.json @@ -149,7 +149,8 @@ "run-sequence": "^1.1.5", "sass": "1.43.5", "shelljs": "^0.8.3", - "sinon": "1.10.3", + "sinon": "^12.0.1", + "sinon-test": "^3.1.1", "staged-git-files": "^1.2.0", "string-replace-loader": "^3.0.3", "stylelint": "^13.13.1", @@ -176,19 +177,6 @@ "yargs": "^4.6.0" } }, - "node_modules/@angular/core": { - "version": "11.2.14", - "resolved": "https://registry.npmjs.org/@angular/core/-/core-11.2.14.tgz", - "integrity": "sha512-vpR4XqBGitk1Faph37CSpemwIYTmJ3pdIVNoHKP6jLonpWu+0azkchf0f7oD8/2ivj2F81opcIw0tcsy/D/5Vg==", - "peer": true, - "dependencies": { - "tslib": "^2.0.0" - }, - "peerDependencies": { - "rxjs": "^6.5.3", - "zone.js": "^0.10.2 || ^0.11.3" - } - }, "node_modules/@babel/code-frame": { "version": "7.16.0", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.0.tgz", @@ -2809,6 +2797,41 @@ "node": ">= 8" } }, + "node_modules/@sinonjs/commons": { + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.3.tgz", + "integrity": "sha512-xkNcLAn/wZaX14RPlwizcKicDk9G3F8m2nU3L7Ukm5zBgTwiT0wsoFAHx9Jq56fJA1z/7uKGtCRu16sOUCLIHQ==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", + "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^1.7.0" + } + }, + "node_modules/@sinonjs/samsam": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-6.0.2.tgz", + "integrity": "sha512-jxPRPp9n93ci7b8hMfJOFDPRLFYadN6FSpeROFTR4UNF4i5b+EK6m4QXPO46BDhFgRy1JuS87zAnFOzCUwMJcQ==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^1.6.0", + "lodash.get": "^4.4.2", + "type-detect": "^4.0.8" + } + }, + "node_modules/@sinonjs/text-encoding": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.1.tgz", + "integrity": "sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ==", + "dev": true + }, "node_modules/@stylelint/postcss-css-in-js": { "version": "0.37.2", "resolved": "https://registry.npmjs.org/@stylelint/postcss-css-in-js/-/postcss-css-in-js-0.37.2.tgz", @@ -4715,18 +4738,6 @@ "postcss": "^8.1.0" } }, - "node_modules/available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/aws-sign2": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", @@ -9177,19 +9188,6 @@ "eslint-config-airbnb-base": "^14.2.0" } }, - "node_modules/eslint-config-airbnb-typescript/node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "peer": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/eslint-config-airbnb-typescript/node_modules/eslint-config-airbnb": { "version": "18.2.1", "resolved": "https://registry.npmjs.org/eslint-config-airbnb/-/eslint-config-airbnb-18.2.1.tgz", @@ -9211,59 +9209,6 @@ "eslint-plugin-react-hooks": "^4 || ^3 || ^2.3.0 || ^1.7.0" } }, - "node_modules/eslint-config-airbnb-typescript/node_modules/eslint-plugin-react": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.27.1.tgz", - "integrity": "sha512-meyunDjMMYeWr/4EBLTV1op3iSG3mjT/pz5gti38UzfM4OPpNc2m0t2xvKCOMU5D6FSdd34BIMFOvQbW+i8GAA==", - "dev": true, - "peer": true, - "dependencies": { - "array-includes": "^3.1.4", - "array.prototype.flatmap": "^1.2.5", - "doctrine": "^2.1.0", - "estraverse": "^5.3.0", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.0.4", - "object.entries": "^1.1.5", - "object.fromentries": "^2.0.5", - "object.hasown": "^1.1.0", - "object.values": "^1.1.5", - "prop-types": "^15.7.2", - "resolve": "^2.0.0-next.3", - "semver": "^6.3.0", - "string.prototype.matchall": "^4.0.6" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" - } - }, - "node_modules/eslint-config-airbnb-typescript/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "peer": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/eslint-config-airbnb-typescript/node_modules/resolve": { - "version": "2.0.0-next.3", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.3.tgz", - "integrity": "sha512-W8LucSynKUIDu9ylraa7ueVZ7hc0uAgJBxVsQSKOXOyle8a93qXhcz+XAXZ8bIq2d6i4Ehddn6Evt+0/UwKk6Q==", - "dev": true, - "peer": true, - "dependencies": { - "is-core-module": "^2.2.0", - "path-parse": "^1.0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/eslint-config-devextreme": { "version": "0.1.40", "resolved": "https://registry.npmjs.org/eslint-config-devextreme/-/eslint-config-devextreme-0.1.40.tgz", @@ -9626,19 +9571,6 @@ "eslint": "^3 || ^4 || ^5 || ^6 || ^7" } }, - "node_modules/eslint-plugin-react-hooks": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.3.0.tgz", - "integrity": "sha512-XslZy0LnMn+84NEG9jSGR6eGqaZB3133L8xewQo3fQagbQuGt7a63gf+P1NGKZavEYEC3UXaWEAA/AqDkuN6xA==", - "dev": true, - "peer": true, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" - } - }, "node_modules/eslint-plugin-react/node_modules/doctrine": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", @@ -11105,12 +11037,6 @@ "node": ">=0.10.0" } }, - "node_modules/foreach": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz", - "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k=", - "dev": true - }, "node_modules/forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", @@ -11140,16 +11066,6 @@ "node": ">= 0.12" } }, - "node_modules/formatio": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/formatio/-/formatio-1.0.2.tgz", - "integrity": "sha1-55kcoUT/fYz/B7uayGqbeca6R+8=", - "deprecated": "This package is unmaintained. Use @sinonjs/formatio instead", - "dev": true, - "dependencies": { - "samsam": "~1.1" - } - }, "node_modules/fraction.js": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.1.2.tgz", @@ -15527,22 +15443,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", @@ -15806,21 +15706,6 @@ "node": ">=6" } }, - "node_modules/is-generator-function": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", - "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", @@ -16084,25 +15969,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-typed-array": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.8.tgz", - "integrity": "sha512-HqH41TNZq2fgtGT8WHVFVJhBVGuY3AnP3Q36K8JKXUxSxRgk/d+7NjmwG2vo2mYmXK8UYZKu0qH8bVP5gEisjA==", - "dev": true, - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "es-abstract": "^1.18.5", - "foreach": "^2.0.5", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", @@ -18172,6 +18038,12 @@ "integrity": "sha512-qpcRocdkUmf+UTNBYx5w6dexX5J31AKK1OmPwH630a83DdVVUIngk55RSAiIGpQyoH0dlr872VHfPjnQnK1qDQ==", "dev": true }, + "node_modules/just-extend": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-4.2.1.tgz", + "integrity": "sha512-g3UB796vUFIY90VIv/WX3L2c8CS2MdWUww3CNrYmqza1Fg0DURc2K/O4YrnklBdQarSJ/y8JnJYDGc+1iumQjg==", + "dev": true + }, "node_modules/kind-of": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", @@ -18921,6 +18793,12 @@ "integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=", "dev": true }, + "node_modules/lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=", + "dev": true + }, "node_modules/lodash.groupby": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/lodash.groupby/-/lodash.groupby-4.6.0.tgz", @@ -20655,6 +20533,28 @@ "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", "dev": true }, + "node_modules/nise": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/nise/-/nise-5.1.0.tgz", + "integrity": "sha512-W5WlHu+wvo3PaKLsJJkgPup2LrsXCcm7AWwyNZkUnn5rwPkuPBi3Iwk5SQtN0mv+K65k7nKKjwNQ30wg3wLAQQ==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^1.7.0", + "@sinonjs/fake-timers": "^7.0.4", + "@sinonjs/text-encoding": "^0.7.1", + "just-extend": "^4.0.2", + "path-to-regexp": "^1.7.0" + } + }, + "node_modules/nise/node_modules/@sinonjs/fake-timers": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-7.1.2.tgz", + "integrity": "sha512-iQADsW4LBMISqZ6Ci1dupJL9pprqwcVFTcOsEmQOEhW+KLCVn/Y4Jrvg2k19fIHCp+iFprriYPTdRcQR8NbUPg==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^1.7.0" + } + }, "node_modules/node-emoji": { "version": "1.11.0", "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.11.0.tgz", @@ -21345,20 +21245,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/object.hasown": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.0.tgz", - "integrity": "sha512-MhjYRfj3GBlhSkDHo6QmvgjRLXQ2zndabdf3nX0yTyZK9rPfxb6uRpAac8HXNLy1GpqWtZ81Qh4v3uOls2sRAg==", - "dev": true, - "peer": true, - "dependencies": { - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/object.map": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/object.map/-/object.map-1.0.1.tgz", @@ -21970,6 +21856,21 @@ "node": ">=0.10.0" } }, + "node_modules/path-to-regexp": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", + "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", + "dev": true, + "dependencies": { + "isarray": "0.0.1" + } + }, + "node_modules/path-to-regexp/node_modules/isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + }, "node_modules/path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", @@ -22264,18 +22165,6 @@ "node": ">=12.13.0" } }, - "node_modules/popper.js": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.16.1.tgz", - "integrity": "sha512-Wb4p1J4zyFTbM+u6WuO4XstYx4Ky9Cewe4DWrel7B0w6VVICvPwdOpotjzcf6eD8TsckVnIMNONQyPIUFOUbCQ==", - "deprecated": "You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1", - "dev": true, - "peer": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/popperjs" - } - }, "node_modules/posix-character-classes": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", @@ -24548,6 +24437,7 @@ "version": "6.6.7", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, "dependencies": { "tslib": "^1.9.0" }, @@ -24558,7 +24448,8 @@ "node_modules/rxjs/node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true }, "node_modules/safe-buffer": { "version": "5.1.2", @@ -24586,13 +24477,6 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true }, - "node_modules/samsam": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/samsam/-/samsam-1.1.3.tgz", - "integrity": "sha1-n1CHQZtNCR8jJXHn+lLpCw9VJiE=", - "deprecated": "This package has been deprecated in favour of @sinonjs/samsam", - "dev": true - }, "node_modules/sane": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/sane/-/sane-4.1.0.tgz", @@ -25116,16 +25000,60 @@ "dev": true }, "node_modules/sinon": { - "version": "1.10.3", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-1.10.3.tgz", - "integrity": "sha1-wGPg6Z2DJ9wZkROqtS64Oi6ePCw=", + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-12.0.1.tgz", + "integrity": "sha512-iGu29Xhym33ydkAT+aNQFBINakjq69kKO6ByPvTsm3yyIACfyQttRTP03aBP/I8GfhFmLzrnKwNNkr0ORb1udg==", "dev": true, "dependencies": { - "formatio": "~1.0", - "util": ">=0.10.3 <1" + "@sinonjs/commons": "^1.8.3", + "@sinonjs/fake-timers": "^8.1.0", + "@sinonjs/samsam": "^6.0.2", + "diff": "^5.0.0", + "nise": "^5.1.0", + "supports-color": "^7.2.0" }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/sinon" + } + }, + "node_modules/sinon-test": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/sinon-test/-/sinon-test-3.1.1.tgz", + "integrity": "sha512-1sM7QhfTGHXU8umSSyDyIQuAwPkUX2I0JK5WFcjzhChNxDYlVw5Vj0fGoJAaS/FvywKmN2U4YgGC/XqDKhYOTA==", + "dev": true, + "peerDependencies": { + "sinon": "2.x - 11.x" + } + }, + "node_modules/sinon/node_modules/diff": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", + "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", + "dev": true, "engines": { - "node": ">=0.1.103" + "node": ">=0.3.1" + } + }, + "node_modules/sinon/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/sinon/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, "node_modules/sisteransi": { @@ -27184,20 +27112,6 @@ } } }, - "node_modules/terser-webpack-plugin/node_modules/acorn": { - "version": "8.6.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.6.0.tgz", - "integrity": "sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw==", - "dev": true, - "optional": true, - "peer": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/terser-webpack-plugin/node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -29397,20 +29311,6 @@ "integrity": "sha1-9F8VDExm7uloGGUFq5P8u4rWv2E=", "dev": true }, - "node_modules/util": { - "version": "0.12.4", - "resolved": "https://registry.npmjs.org/util/-/util-0.12.4.tgz", - "integrity": "sha512-bxZ9qtSlGUWSOy9Qa9Xgk11kSslpuZwaxCg4sNIDj6FLucDab2JxnHwyNTCpHMtK1MjoQiWQ6DiUMZYbSrO+Sw==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "is-arguments": "^1.0.4", - "is-generator-function": "^1.0.7", - "is-typed-array": "^1.1.3", - "safe-buffer": "^5.1.2", - "which-typed-array": "^1.1.2" - } - }, "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -29736,12 +29636,6 @@ "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", "dev": true }, - "node_modules/vue": { - "version": "2.6.14", - "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.14.tgz", - "integrity": "sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ==", - "peer": true - }, "node_modules/w3c-hr-time": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", @@ -30825,26 +30719,6 @@ "which": "bin/which" } }, - "node_modules/which-typed-array": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.7.tgz", - "integrity": "sha512-vjxaB4nfDqwKI0ws7wZpxIlde1XrLX5uB0ZjpfshgmapJMD7jJWhZI+yToJTqaFByF0eNBcYxbjmCzoRP7CfEw==", - "dev": true, - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "es-abstract": "^1.18.5", - "foreach": "^2.0.5", - "has-tostringtag": "^1.0.0", - "is-typed-array": "^1.1.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/wide-align": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", @@ -31221,15 +31095,6 @@ "node": ">= 6" } }, - "node_modules/zone.js": { - "version": "0.11.4", - "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.11.4.tgz", - "integrity": "sha512-DDh2Ab+A/B+9mJyajPjHFPWfYU1H+pdun4wnnk0OcQTNjem1XQSZ2CDW+rfZEUDjv5M19SBqAkjZi0x5wuB5Qw==", - "peer": true, - "dependencies": { - "tslib": "^2.0.0" - } - }, "node_modules/zwitch": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-1.0.5.tgz", @@ -31242,15 +31107,6 @@ } }, "dependencies": { - "@angular/core": { - "version": "11.2.14", - "resolved": "https://registry.npmjs.org/@angular/core/-/core-11.2.14.tgz", - "integrity": "sha512-vpR4XqBGitk1Faph37CSpemwIYTmJ3pdIVNoHKP6jLonpWu+0azkchf0f7oD8/2ivj2F81opcIw0tcsy/D/5Vg==", - "peer": true, - "requires": { - "tslib": "^2.0.0" - } - }, "@babel/code-frame": { "version": "7.16.0", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.0.tgz", @@ -33165,6 +33021,41 @@ "fastq": "^1.6.0" } }, + "@sinonjs/commons": { + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.3.tgz", + "integrity": "sha512-xkNcLAn/wZaX14RPlwizcKicDk9G3F8m2nU3L7Ukm5zBgTwiT0wsoFAHx9Jq56fJA1z/7uKGtCRu16sOUCLIHQ==", + "dev": true, + "requires": { + "type-detect": "4.0.8" + } + }, + "@sinonjs/fake-timers": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", + "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", + "dev": true, + "requires": { + "@sinonjs/commons": "^1.7.0" + } + }, + "@sinonjs/samsam": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-6.0.2.tgz", + "integrity": "sha512-jxPRPp9n93ci7b8hMfJOFDPRLFYadN6FSpeROFTR4UNF4i5b+EK6m4QXPO46BDhFgRy1JuS87zAnFOzCUwMJcQ==", + "dev": true, + "requires": { + "@sinonjs/commons": "^1.6.0", + "lodash.get": "^4.4.2", + "type-detect": "^4.0.8" + } + }, + "@sinonjs/text-encoding": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.1.tgz", + "integrity": "sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ==", + "dev": true + }, "@stylelint/postcss-css-in-js": { "version": "0.37.2", "resolved": "https://registry.npmjs.org/@stylelint/postcss-css-in-js/-/postcss-css-in-js-0.37.2.tgz", @@ -33934,8 +33825,7 @@ "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "requires": {} + "dev": true }, "acorn-walk": { "version": "6.2.0", @@ -33986,15 +33876,13 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-1.0.1.tgz", "integrity": "sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==", - "dev": true, - "requires": {} + "dev": true }, "ajv-keywords": { "version": "3.5.2", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true, - "requires": {} + "dev": true }, "align-text": { "version": "0.1.4", @@ -34738,12 +34626,6 @@ "postcss-value-parser": "^4.1.0" } }, - "available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", - "dev": true - }, "aws-sign2": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", @@ -34831,8 +34713,7 @@ "version": "7.0.0-bridge.0", "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-7.0.0-bridge.0.tgz", "integrity": "sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg==", - "dev": true, - "requires": {} + "dev": true }, "babel-eslint": { "version": "10.1.0", @@ -35904,8 +35785,7 @@ "version": "4.6.1", "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.6.1.tgz", "integrity": "sha512-0dj+VgI9Ecom+rvvpNZ4MUZJz8dcX7WCX+eTID9+/8HgOkv3dsRzi8BGeZJCQU6flWQVYxwTQnEZFrmJSEO7og==", - "dev": true, - "requires": {} + "dev": true }, "bowser": { "version": "2.11.0", @@ -36549,8 +36429,7 @@ "version": "7.5.6", "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.6.tgz", "integrity": "sha512-6GLgCqo2cy2A2rjCNFlxQS6ZljG/coZfZXclldI8FB/1G3CCI36Zd8xy2HrFVACi8tfk5XrgLQEk+P0Tnz9UcA==", - "dev": true, - "requires": {} + "dev": true } } }, @@ -36604,8 +36483,7 @@ "version": "40.0.0", "resolved": "https://registry.npmjs.org/cldr-numbers-full/-/cldr-numbers-full-40.0.0.tgz", "integrity": "sha512-NE5uKg0JDAcg5Pn6MKDg50cAKkUQtMd+mOxGPfDZVL+JRUHimQFvY/21KuzLBTI1i1IDbhEF9so/iXMmUJugPg==", - "dev": true, - "requires": {} + "dev": true }, "cldrjs": { "version": "0.5.5", @@ -38617,16 +38495,6 @@ "eslint-config-airbnb-base": "^14.2.0" }, "dependencies": { - "doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "peer": true, - "requires": { - "esutils": "^2.0.2" - } - }, "eslint-config-airbnb": { "version": "18.2.1", "resolved": "https://registry.npmjs.org/eslint-config-airbnb/-/eslint-config-airbnb-18.2.1.tgz", @@ -38637,47 +38505,6 @@ "object.assign": "^4.1.2", "object.entries": "^1.1.2" } - }, - "eslint-plugin-react": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.27.1.tgz", - "integrity": "sha512-meyunDjMMYeWr/4EBLTV1op3iSG3mjT/pz5gti38UzfM4OPpNc2m0t2xvKCOMU5D6FSdd34BIMFOvQbW+i8GAA==", - "dev": true, - "peer": true, - "requires": { - "array-includes": "^3.1.4", - "array.prototype.flatmap": "^1.2.5", - "doctrine": "^2.1.0", - "estraverse": "^5.3.0", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.0.4", - "object.entries": "^1.1.5", - "object.fromentries": "^2.0.5", - "object.hasown": "^1.1.0", - "object.values": "^1.1.5", - "prop-types": "^15.7.2", - "resolve": "^2.0.0-next.3", - "semver": "^6.3.0", - "string.prototype.matchall": "^4.0.6" - } - }, - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "peer": true - }, - "resolve": { - "version": "2.0.0-next.3", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.3.tgz", - "integrity": "sha512-W8LucSynKUIDu9ylraa7ueVZ7hc0uAgJBxVsQSKOXOyle8a93qXhcz+XAXZ8bIq2d6i4Ehddn6Evt+0/UwKk6Q==", - "dev": true, - "peer": true, - "requires": { - "is-core-module": "^2.2.0", - "path-parse": "^1.0.6" - } } } }, @@ -38685,8 +38512,7 @@ "version": "0.1.40", "resolved": "https://registry.npmjs.org/eslint-config-devextreme/-/eslint-config-devextreme-0.1.40.tgz", "integrity": "sha512-Sk7c6EOZVTXwkkszUuYBg4l3AIBzji+ZCEBd8yYuNLdNPwj9AqNSstPwcC++CWwPnUwQBnA0Q3/05RjtyWfSbA==", - "dev": true, - "requires": {} + "dev": true }, "eslint-import-resolver-node": { "version": "0.3.6", @@ -38865,8 +38691,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/eslint-plugin-jest-formatting/-/eslint-plugin-jest-formatting-1.2.0.tgz", "integrity": "sha512-EqsbDByAtdQa5vEhJFUFMqTW7fghN0Qhb8oulM7R3j9+9xRuMsQKCPjWvCIxpWhl3SJJmlxBC25o1pUXiBHaAw==", - "dev": true, - "requires": {} + "dev": true }, "eslint-plugin-jsx-a11y": { "version": "6.5.1", @@ -38966,14 +38791,6 @@ } } }, - "eslint-plugin-react-hooks": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.3.0.tgz", - "integrity": "sha512-XslZy0LnMn+84NEG9jSGR6eGqaZB3133L8xewQo3fQagbQuGt7a63gf+P1NGKZavEYEC3UXaWEAA/AqDkuN6xA==", - "dev": true, - "peer": true, - "requires": {} - }, "eslint-plugin-rulesdir": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/eslint-plugin-rulesdir/-/eslint-plugin-rulesdir-0.2.1.tgz", @@ -40038,12 +39855,6 @@ "for-in": "^1.0.1" } }, - "foreach": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz", - "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k=", - "dev": true - }, "forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", @@ -40067,15 +39878,6 @@ "mime-types": "^2.1.12" } }, - "formatio": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/formatio/-/formatio-1.0.2.tgz", - "integrity": "sha1-55kcoUT/fYz/B7uayGqbeca6R+8=", - "dev": true, - "requires": { - "samsam": "~1.1" - } - }, "fraction.js": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.1.2.tgz", @@ -43649,16 +43451,6 @@ "is-decimal": "^1.0.0" } }, - "is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, "is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", @@ -43831,15 +43623,6 @@ "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", "dev": true }, - "is-generator-function": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", - "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, "is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", @@ -44023,19 +43806,6 @@ "has-symbols": "^1.0.2" } }, - "is-typed-array": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.8.tgz", - "integrity": "sha512-HqH41TNZq2fgtGT8WHVFVJhBVGuY3AnP3Q36K8JKXUxSxRgk/d+7NjmwG2vo2mYmXK8UYZKu0qH8bVP5gEisjA==", - "dev": true, - "requires": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "es-abstract": "^1.18.5", - "foreach": "^2.0.5", - "has-tostringtag": "^1.0.0" - } - }, "is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", @@ -45049,8 +44819,7 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz", "integrity": "sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==", - "dev": true, - "requires": {} + "dev": true }, "jest-regex-util": { "version": "24.9.0", @@ -45622,8 +45391,7 @@ "version": "3.5.14", "resolved": "https://registry.npmjs.org/jspdf-autotable/-/jspdf-autotable-3.5.14.tgz", "integrity": "sha512-Qm11yQ2hTvM2iZ7MpWLpeDGR+uQlI8bcOsMjWYXon9mTo+UehMqp5xdQk6JpVSNUN6+rnJnpS5mkqelv4ncd5g==", - "dev": true, - "requires": {} + "dev": true }, "jsprim": { "version": "1.4.2", @@ -45709,6 +45477,12 @@ "integrity": "sha512-qpcRocdkUmf+UTNBYx5w6dexX5J31AKK1OmPwH630a83DdVVUIngk55RSAiIGpQyoH0dlr872VHfPjnQnK1qDQ==", "dev": true }, + "just-extend": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-4.2.1.tgz", + "integrity": "sha512-g3UB796vUFIY90VIv/WX3L2c8CS2MdWUww3CNrYmqza1Fg0DURc2K/O4YrnklBdQarSJ/y8JnJYDGc+1iumQjg==", + "dev": true + }, "kind-of": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", @@ -46353,6 +46127,12 @@ "integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=", "dev": true }, + "lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=", + "dev": true + }, "lodash.groupby": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/lodash.groupby/-/lodash.groupby-4.6.0.tgz", @@ -47765,6 +47545,30 @@ "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", "dev": true }, + "nise": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/nise/-/nise-5.1.0.tgz", + "integrity": "sha512-W5WlHu+wvo3PaKLsJJkgPup2LrsXCcm7AWwyNZkUnn5rwPkuPBi3Iwk5SQtN0mv+K65k7nKKjwNQ30wg3wLAQQ==", + "dev": true, + "requires": { + "@sinonjs/commons": "^1.7.0", + "@sinonjs/fake-timers": "^7.0.4", + "@sinonjs/text-encoding": "^0.7.1", + "just-extend": "^4.0.2", + "path-to-regexp": "^1.7.0" + }, + "dependencies": { + "@sinonjs/fake-timers": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-7.1.2.tgz", + "integrity": "sha512-iQADsW4LBMISqZ6Ci1dupJL9pprqwcVFTcOsEmQOEhW+KLCVn/Y4Jrvg2k19fIHCp+iFprriYPTdRcQR8NbUPg==", + "dev": true, + "requires": { + "@sinonjs/commons": "^1.7.0" + } + } + } + }, "node-emoji": { "version": "1.11.0", "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.11.0.tgz", @@ -48331,17 +48135,6 @@ "es-abstract": "^1.19.1" } }, - "object.hasown": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.0.tgz", - "integrity": "sha512-MhjYRfj3GBlhSkDHo6QmvgjRLXQ2zndabdf3nX0yTyZK9rPfxb6uRpAac8HXNLy1GpqWtZ81Qh4v3uOls2sRAg==", - "dev": true, - "peer": true, - "requires": { - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1" - } - }, "object.map": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/object.map/-/object.map-1.0.1.tgz", @@ -48839,6 +48632,23 @@ "integrity": "sha1-v8zcjfWxLcUsi0PsONGNcsBLqW0=", "dev": true }, + "path-to-regexp": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", + "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", + "dev": true, + "requires": { + "isarray": "0.0.1" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + } + } + }, "path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", @@ -49062,13 +48872,6 @@ "integrity": "sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg==", "dev": true }, - "popper.js": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.16.1.tgz", - "integrity": "sha512-Wb4p1J4zyFTbM+u6WuO4XstYx4Ky9Cewe4DWrel7B0w6VVICvPwdOpotjzcf6eD8TsckVnIMNONQyPIUFOUbCQ==", - "dev": true, - "peer": true - }, "posix-character-classes": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", @@ -49325,8 +49128,7 @@ "version": "0.36.2", "resolved": "https://registry.npmjs.org/postcss-syntax/-/postcss-syntax-0.36.2.tgz", "integrity": "sha512-nBRg/i7E3SOHWxF3PpF5WnJM/jQ1YpY9000OaVXlAQj6Zp/kIqJxEDWIZ67tAd7NLuk7zqN4yqe9nc0oNAOs1w==", - "dev": true, - "requires": {} + "dev": true }, "postcss-value-parser": { "version": "4.2.0", @@ -50895,6 +50697,7 @@ "version": "6.6.7", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, "requires": { "tslib": "^1.9.0" }, @@ -50902,7 +50705,8 @@ "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true } } }, @@ -50932,12 +50736,6 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true }, - "samsam": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/samsam/-/samsam-1.1.3.tgz", - "integrity": "sha1-n1CHQZtNCR8jJXHn+lLpCw9VJiE=", - "dev": true - }, "sane": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/sane/-/sane-4.1.0.tgz", @@ -51353,15 +51151,48 @@ } }, "sinon": { - "version": "1.10.3", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-1.10.3.tgz", - "integrity": "sha1-wGPg6Z2DJ9wZkROqtS64Oi6ePCw=", + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-12.0.1.tgz", + "integrity": "sha512-iGu29Xhym33ydkAT+aNQFBINakjq69kKO6ByPvTsm3yyIACfyQttRTP03aBP/I8GfhFmLzrnKwNNkr0ORb1udg==", "dev": true, "requires": { - "formatio": "~1.0", - "util": ">=0.10.3 <1" + "@sinonjs/commons": "^1.8.3", + "@sinonjs/fake-timers": "^8.1.0", + "@sinonjs/samsam": "^6.0.2", + "diff": "^5.0.0", + "nise": "^5.1.0", + "supports-color": "^7.2.0" + }, + "dependencies": { + "diff": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", + "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } } }, + "sinon-test": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/sinon-test/-/sinon-test-3.1.1.tgz", + "integrity": "sha512-1sM7QhfTGHXU8umSSyDyIQuAwPkUX2I0JK5WFcjzhChNxDYlVw5Vj0fGoJAaS/FvywKmN2U4YgGC/XqDKhYOTA==", + "dev": true + }, "sisteransi": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", @@ -52631,8 +52462,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-3.0.0.tgz", "integrity": "sha512-F6yTRuc06xr1h5Qw/ykb2LuFynJ2IxkKfCMf+1xqPffkxh0S09Zc902XCffcsw/XMFq/OzQ1w54fLIDtmRNHnQ==", - "dev": true, - "requires": {} + "dev": true } } }, @@ -53010,14 +52840,6 @@ "terser": "^5.7.2" }, "dependencies": { - "acorn": { - "version": "8.6.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.6.0.tgz", - "integrity": "sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw==", - "dev": true, - "optional": true, - "peer": true - }, "has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -54781,20 +54603,6 @@ "integrity": "sha1-9F8VDExm7uloGGUFq5P8u4rWv2E=", "dev": true }, - "util": { - "version": "0.12.4", - "resolved": "https://registry.npmjs.org/util/-/util-0.12.4.tgz", - "integrity": "sha512-bxZ9qtSlGUWSOy9Qa9Xgk11kSslpuZwaxCg4sNIDj6FLucDab2JxnHwyNTCpHMtK1MjoQiWQ6DiUMZYbSrO+Sw==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "is-arguments": "^1.0.4", - "is-generator-function": "^1.0.7", - "is-typed-array": "^1.1.3", - "safe-buffer": "^5.1.2", - "which-typed-array": "^1.1.2" - } - }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -55071,12 +54879,6 @@ "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", "dev": true }, - "vue": { - "version": "2.6.14", - "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.14.tgz", - "integrity": "sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ==", - "peer": true - }, "w3c-hr-time": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", @@ -55185,8 +54987,7 @@ "version": "1.8.0", "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", - "dev": true, - "requires": {} + "dev": true }, "schema-utils": { "version": "3.1.1", @@ -55951,20 +55752,6 @@ } } }, - "which-typed-array": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.7.tgz", - "integrity": "sha512-vjxaB4nfDqwKI0ws7wZpxIlde1XrLX5uB0ZjpfshgmapJMD7jJWhZI+yToJTqaFByF0eNBcYxbjmCzoRP7CfEw==", - "dev": true, - "requires": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "es-abstract": "^1.18.5", - "foreach": "^2.0.5", - "has-tostringtag": "^1.0.0", - "is-typed-array": "^1.1.7" - } - }, "wide-align": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", @@ -56281,15 +56068,6 @@ "readable-stream": "^3.4.0" } }, - "zone.js": { - "version": "0.11.4", - "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.11.4.tgz", - "integrity": "sha512-DDh2Ab+A/B+9mJyajPjHFPWfYU1H+pdun4wnnk0OcQTNjem1XQSZ2CDW+rfZEUDjv5M19SBqAkjZi0x5wuB5Qw==", - "peer": true, - "requires": { - "tslib": "^2.0.0" - } - }, "zwitch": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-1.0.5.tgz", diff --git a/package.json b/package.json index 613f861a96e..ef46d11cc87 100644 --- a/package.json +++ b/package.json @@ -164,7 +164,8 @@ "run-sequence": "^1.1.5", "sass": "1.43.5", "shelljs": "^0.8.3", - "sinon": "1.10.3", + "sinon": "^12.0.1", + "sinon-test": "^3.1.1", "staged-git-files": "^1.2.0", "string-replace-loader": "^3.0.3", "stylelint": "^13.13.1", diff --git a/testing/tests/DevExpress.angular/componentRegistration.tests.js b/testing/tests/DevExpress.angular/componentRegistration.tests.js index 5f8118b224c..1e4d1f9e30b 100644 --- a/testing/tests/DevExpress.angular/componentRegistration.tests.js +++ b/testing/tests/DevExpress.angular/componentRegistration.tests.js @@ -625,7 +625,7 @@ QUnit.test('binding should fired once when option is a plain object', function(a const instance = $markup.dxTest('instance'); - spy.reset(); + spy.resetHistory(); instance.option('testOption', { value: 2 }); assert.equal(spy.callCount, 1, 'optionChanged action fired once'); @@ -683,7 +683,7 @@ QUnit.test('option changed fired after value was set in the same value(plain obj instance.option('testOption', value); - spy.reset(); + spy.resetHistory(); scope.$apply(() => { scope.dataValue.value = 3; }); diff --git a/testing/tests/DevExpress.angular/modelIntegration.tests.js b/testing/tests/DevExpress.angular/modelIntegration.tests.js index 98efb7e1ddf..31ec167ef5f 100644 --- a/testing/tests/DevExpress.angular/modelIntegration.tests.js +++ b/testing/tests/DevExpress.angular/modelIntegration.tests.js @@ -258,7 +258,7 @@ QUnit.test('optionChanged should fired once when value is a plain object and use angular.bootstrap(this.$container, ['app']); - spy.reset(); + spy.resetHistory(); const instance = $markup.dxEditor('instance'); diff --git a/testing/tests/DevExpress.ui.widgets.dataGrid/focus.tests.js b/testing/tests/DevExpress.ui.widgets.dataGrid/focus.tests.js index 1bebc97476f..6f6300c9a5f 100644 --- a/testing/tests/DevExpress.ui.widgets.dataGrid/focus.tests.js +++ b/testing/tests/DevExpress.ui.widgets.dataGrid/focus.tests.js @@ -3384,7 +3384,7 @@ QUnit.module('Focused row', getModuleConfig(true), () => { this.clock.tick(); // act - loadSpy.reset(); + loadSpy.resetHistory(); this.getController('columns').changeSortOrder(2, 'asc'); this.clock.tick(); @@ -4096,7 +4096,7 @@ QUnit.module('Focused row', getModuleConfig(true), () => { assert.ok(newRow.isNewRow, 'new row'); // act - onFocusedRowChangedSpy.reset(); + onFocusedRowChangedSpy.resetHistory(); $(this.getRowElement(newRowIndex)).find('.dx-texteditor-input').trigger(pointerEvents.down).click(); this.clock.tick(); diff --git a/testing/tests/DevExpress.ui.widgets.dataGrid/headerFilter.tests.js b/testing/tests/DevExpress.ui.widgets.dataGrid/headerFilter.tests.js index b07ad72b49e..dcccc90ed77 100644 --- a/testing/tests/DevExpress.ui.widgets.dataGrid/headerFilter.tests.js +++ b/testing/tests/DevExpress.ui.widgets.dataGrid/headerFilter.tests.js @@ -4193,7 +4193,7 @@ QUnit.module('Header Filter with real columnsController', { }]; this.options.dataSource = { load: spy }; this.setupDataGrid(); - spy.reset(); + spy.resetHistory(); // act this.columnOption('date', 'filterValues', [['date', '=', '2018/01/01']]); diff --git a/testing/tests/DevExpress.ui.widgets.editors/calendar.tests.js b/testing/tests/DevExpress.ui.widgets.editors/calendar.tests.js index b5cdf13d287..2628435da00 100644 --- a/testing/tests/DevExpress.ui.widgets.editors/calendar.tests.js +++ b/testing/tests/DevExpress.ui.widgets.editors/calendar.tests.js @@ -2284,7 +2284,7 @@ QUnit.module('disabledDates option', { }); fx.off = false; - animationSpy.reset(); + animationSpy.resetHistory(); const lastAvailableDateOnJanuary = new Date(2020, 0, 19); const firstAvailableDateOnFebruary = new Date(2020, 1, 20); @@ -2339,7 +2339,7 @@ QUnit.module('disabledDates option', { }); fx.off = false; - animationSpy.reset(); + animationSpy.resetHistory(); this.$element.trigger('focusin'); @@ -2577,7 +2577,7 @@ QUnit.module('disabledDates option', { }); fx.off = false; - animationSpy.reset(); + animationSpy.resetHistory(); this.$element.trigger('focusin'); @@ -2703,7 +2703,7 @@ QUnit.module('disabledDates option', { }); fx.off = false; - animationSpy.reset(); + animationSpy.resetHistory(); this.$element.trigger('focusin'); @@ -2739,7 +2739,7 @@ QUnit.module('disabledDates option', { }); fx.off = false; - animationSpy.reset(); + animationSpy.resetHistory(); this.$element.trigger('focusin'); diff --git a/testing/tests/DevExpress.ui.widgets.editors/fileUploader.tests.js b/testing/tests/DevExpress.ui.widgets.editors/fileUploader.tests.js index 8e5750e830b..cf61cee8d45 100644 --- a/testing/tests/DevExpress.ui.widgets.editors/fileUploader.tests.js +++ b/testing/tests/DevExpress.ui.widgets.editors/fileUploader.tests.js @@ -745,9 +745,9 @@ QUnit.module('custom uploading', moduleConfig, () => { assert.strictEqual(onUploadedSpy.callCount, 1, 'uploaded event raised'); assert.strictEqual(onAbortedSpy.callCount, 0, 'upload aborted event is not called'); - uploadChunkSpy.reset(); - onUploadedSpy.reset(); - onAbortedSpy.reset(); + uploadChunkSpy.resetHistory(); + onUploadedSpy.resetHistory(); + onAbortedSpy.resetHistory(); fileUploader.option('value', []); @@ -1606,8 +1606,8 @@ QUnit.module('allowCanceling', moduleConfig, () => { assert.ok(onUploadAbortedSpy.calledOnce, 'upload is cancelled'); assert.ok(onUploadedSpy.notCalled, 'upload is not finished'); - onUploadAbortedSpy.reset(); - onUploadedSpy.reset(); + onUploadAbortedSpy.resetHistory(); + onUploadedSpy.resetHistory(); let $fileStatusMessage = $element.find('.' + FILEUPLOADER_FILE_STATUS_MESSAGE_CLASS); let $progressBar = $element.find('.dx-progressbar'); @@ -2979,7 +2979,7 @@ QUnit.module('uploading events', moduleConfig, () => { assert.ok(onUploadedSpy.calledOnce, 'file 1 uploaded'); assert.ok(onUploadCompletedSpy.notCalled, 'onUploadCompletedSpy was not called'); - onUploadedSpy.reset(); + onUploadedSpy.resetHistory(); this.clock.tick(this.xhrMock.LOAD_TIMEOUT); this.clock.tick(FILEUPLOADER_AFTER_LOAD_DELAY); @@ -3013,7 +3013,7 @@ QUnit.module('uploading events', moduleConfig, () => { assert.ok(onUploadAbortedSpy.notCalled, 'none files was aborted'); assert.ok(onUploadCompletedSpy.notCalled, 'onUploadCompletedSpy was not called'); - onUploadedSpy.reset(); + onUploadedSpy.resetHistory(); $element.dxFileUploader('instance').abortUpload(); this.clock.tick(this.xhrMock.LOAD_TIMEOUT * 2); this.clock.tick(FILEUPLOADER_AFTER_LOAD_DELAY); @@ -3055,7 +3055,7 @@ QUnit.module('uploading events', moduleConfig, () => { assert.ok(onUploadErrorSpy.notCalled, 'none files has error'); assert.ok(onUploadCompletedSpy.notCalled, 'onUploadCompletedSpy was not called'); - onUploadedSpy.reset(); + onUploadedSpy.resetHistory(); this.clock.tick(1000); this.clock.tick(this.xhrMock.LOAD_TIMEOUT); this.clock.tick(FILEUPLOADER_AFTER_LOAD_DELAY); @@ -3092,8 +3092,8 @@ QUnit.module('uploading events', moduleConfig, () => { assert.ok(onUploadedSpy.calledOnce, 'file 1 was uploaded'); assert.ok(onUploadCompletedSpy.calledOnce, 'onUploadCompletedSpy was called in right time'); - onUploadedSpy.reset(); - onUploadCompletedSpy.reset(); + onUploadedSpy.resetHistory(); + onUploadCompletedSpy.resetHistory(); this.clock.tick(1000); this.clock.tick(this.xhrMock.LOAD_TIMEOUT); this.clock.tick(FILEUPLOADER_AFTER_LOAD_DELAY); @@ -3139,7 +3139,7 @@ QUnit.module('uploading events', moduleConfig, () => { assert.ok(onUploadErrorSpy.notCalled, 'none files has error'); assert.ok(onUploadCompletedSpy.notCalled, 'onUploadCompletedSpy was not called'); - onUploadedSpy.reset(); + onUploadedSpy.resetHistory(); this.clock.tick(1000); this.clock.tick(this.xhrMock.LOAD_TIMEOUT); this.clock.tick(FILEUPLOADER_AFTER_LOAD_DELAY); @@ -3591,8 +3591,8 @@ QUnit.module('Drag and drop', moduleConfig, () => { assert.ok(onDropZoneLeaveSpy.calledOnce, 'dropZoneLeave called on first dropZone'); assert.strictEqual(onDropZoneLeaveSpy.args[0][0].dropZoneElement, customDropZone1[0], 'dropZone argument is correct'); - onDropZoneEnterSpy.reset(); - onDropZoneLeaveSpy.reset(); + onDropZoneEnterSpy.resetHistory(); + onDropZoneLeaveSpy.resetHistory(); triggerDragEvent(customDropZone2, 'dragenter'); assert.ok(onDropZoneEnterSpy.calledOnce, 'dropZoneEnter called on second dropZone'); @@ -3749,7 +3749,7 @@ QUnit.module('files selection', moduleConfig, () => { this.clock.tick(this.xhrMock.LOAD_TIMEOUT * 2); assert.ok(uploadedSpy.calledTwice, 'two files are loaded'); - uploadedSpy.reset(); + uploadedSpy.resetHistory(); simulateFileChoose($fileUploader, files); instance.upload(); diff --git a/testing/tests/DevExpress.ui.widgets.editors/tagBox.tests.js b/testing/tests/DevExpress.ui.widgets.editors/tagBox.tests.js index 1c4c0c91cf9..fc37a657bb8 100644 --- a/testing/tests/DevExpress.ui.widgets.editors/tagBox.tests.js +++ b/testing/tests/DevExpress.ui.widgets.editors/tagBox.tests.js @@ -4966,7 +4966,7 @@ QUnit.module('the \'fieldTemplate\' option', moduleSetup, () => { focusStateEnabled: true }); - fieldTemplateSpy.reset(); + fieldTemplateSpy.resetHistory(); keyboardMock($tagBox.find('.dx-texteditor-input')) .focus() .press('down'); diff --git a/testing/tests/DevExpress.ui.widgets.editors/validationSummary.markup.tests.js b/testing/tests/DevExpress.ui.widgets.editors/validationSummary.markup.tests.js index 811f6990510..c717a51b9a3 100644 --- a/testing/tests/DevExpress.ui.widgets.editors/validationSummary.markup.tests.js +++ b/testing/tests/DevExpress.ui.widgets.editors/validationSummary.markup.tests.js @@ -422,7 +422,7 @@ QUnit.module('Update on validator\'s validation', { ValidationEngine.validateGroup('group1'); ValidationEngine.validateGroup('group1'); - spy.reset(); + spy.resetHistory(); validator1.validate(); assert.equal(spy.callCount, 1, 'Render of validation summary should be called only once'); diff --git a/testing/tests/DevExpress.ui.widgets.scheduler/appointment.templates.tests.js b/testing/tests/DevExpress.ui.widgets.scheduler/appointment.templates.tests.js index 7c1185e1f13..4cf4335057f 100644 --- a/testing/tests/DevExpress.ui.widgets.scheduler/appointment.templates.tests.js +++ b/testing/tests/DevExpress.ui.widgets.scheduler/appointment.templates.tests.js @@ -1,4 +1,5 @@ import $ from 'jquery'; +import SinonTest from 'sinon-test'; import fx from 'animation/fx'; import { DataSource } from 'data/data_source/data_source'; import { @@ -11,12 +12,14 @@ import { import 'ui/scheduler/ui.scheduler'; import 'ui/switch'; +const sinonTest = SinonTest(sinon); const { module } = QUnit; + const test = (description, callback) => { - return QUnit.test(description, sinon.test(callback)); + return QUnit.test(description, sinonTest(callback)); }; QUnit.testStart(() => initTestMarkup()); diff --git a/testing/tests/DevExpress.ui.widgets.scheduler/appointments.tests.js b/testing/tests/DevExpress.ui.widgets.scheduler/appointments.tests.js index 2f6fbb1f352..54c9bfb7056 100644 --- a/testing/tests/DevExpress.ui.widgets.scheduler/appointments.tests.js +++ b/testing/tests/DevExpress.ui.widgets.scheduler/appointments.tests.js @@ -1071,7 +1071,7 @@ QUnit.module('Appointments Keyboard Navigation', moduleOptions, () => { this.clock.tick(); assert.ok(focusSpy.called, 'focus is called'); - sinon.restore(); + focusSpy.restore(); eventsEngine.trigger = initialTrigger; }); diff --git a/testing/tests/DevExpress.ui.widgets.scheduler/virtual_scrolling.integration.tests.js b/testing/tests/DevExpress.ui.widgets.scheduler/virtual_scrolling.integration.tests.js index b352ec60626..f058e5645ba 100644 --- a/testing/tests/DevExpress.ui.widgets.scheduler/virtual_scrolling.integration.tests.js +++ b/testing/tests/DevExpress.ui.widgets.scheduler/virtual_scrolling.integration.tests.js @@ -1,4 +1,5 @@ import $ from 'jquery'; +import SinonTest from 'sinon-test'; import { getWindow } from 'core/utils/window'; @@ -15,6 +16,7 @@ import { const supportedViews = ['day', 'week', 'workWeek', 'month']; // TODO: add timelines +const sinonTest = SinonTest(sinon); const { testStart, module @@ -24,7 +26,7 @@ const test = (description, callback) => { const testFunc = !isDesktopEnvironment() ? QUnit.skip : QUnit.test; - return testFunc(description, sinon.test(callback)); + return testFunc(description, sinonTest(callback)); }; testStart(() => initTestMarkup()); diff --git a/testing/tests/DevExpress.ui.widgets.scheduler/virtual_scrolling.monthView.tests.js b/testing/tests/DevExpress.ui.widgets.scheduler/virtual_scrolling.monthView.tests.js index bc3f66d6f36..8274868f49a 100644 --- a/testing/tests/DevExpress.ui.widgets.scheduler/virtual_scrolling.monthView.tests.js +++ b/testing/tests/DevExpress.ui.widgets.scheduler/virtual_scrolling.monthView.tests.js @@ -1,5 +1,6 @@ import 'generic_light.css!'; import $ from 'jquery'; +import SinonTest from 'sinon-test'; import dateUtils from 'core/utils/date'; import { @@ -10,6 +11,7 @@ import { isDesktopEnvironment, } from '../../helpers/scheduler/helpers.js'; +const sinonTest = SinonTest(sinon); const { testStart, module @@ -20,7 +22,7 @@ const test = (description, callback) => { ? QUnit.skip : QUnit.test; - return testFunc(description, sinon.test(callback)); + return testFunc(description, sinonTest(callback)); }; const printOffset = offset => [ offset.x >= 0 ? `offset.x: ${offset.x}` : '', diff --git a/testing/tests/DevExpress.ui.widgets.scheduler/virtual_scrolling.tests.js b/testing/tests/DevExpress.ui.widgets.scheduler/virtual_scrolling.tests.js index adb312479f5..68c8080a0e0 100644 --- a/testing/tests/DevExpress.ui.widgets.scheduler/virtual_scrolling.tests.js +++ b/testing/tests/DevExpress.ui.widgets.scheduler/virtual_scrolling.tests.js @@ -1,4 +1,5 @@ import $ from 'jquery'; +import SinonTest from 'sinon-test'; import { VirtualScrollingDispatcher } from 'ui/scheduler/workspaces/ui.scheduler.virtual_scrolling'; import domAdapter from 'core/dom_adapter'; import eventsEngine from 'events/core/events_engine'; @@ -7,9 +8,10 @@ import { addNamespace } from 'events/utils/index'; const { module } = QUnit; +const sinonTest = SinonTest(sinon); const test = (description, callback) => { - return QUnit.test(description, sinon.test(callback)); + return QUnit.test(description, sinonTest(callback)); }; module('Virtual Scrolling', { diff --git a/testing/tests/DevExpress.ui.widgets.scheduler/virtual_scrolling.timeline.tests.js b/testing/tests/DevExpress.ui.widgets.scheduler/virtual_scrolling.timeline.tests.js index 3bd8fcd9905..8aa8be27cf6 100644 --- a/testing/tests/DevExpress.ui.widgets.scheduler/virtual_scrolling.timeline.tests.js +++ b/testing/tests/DevExpress.ui.widgets.scheduler/virtual_scrolling.timeline.tests.js @@ -1,3 +1,5 @@ +import SinonTest from 'sinon-test'; + import 'generic_light.css!'; import { @@ -12,13 +14,14 @@ const { testStart, module } = QUnit; +const sinonTest = SinonTest(sinon); const test = (description, callback) => { const testFunc = !isDesktopEnvironment() ? QUnit.skip : QUnit.test; - return testFunc(description, sinon.test(callback)); + return testFunc(description, sinonTest(callback)); }; const printOffset = offset => [ offset.x >= 0 ? `offset.x: ${offset.x}` : '', diff --git a/testing/tests/DevExpress.ui.widgets.treeList/dataController.tests.js b/testing/tests/DevExpress.ui.widgets.treeList/dataController.tests.js index 6e903986ffb..2f456ef8f98 100644 --- a/testing/tests/DevExpress.ui.widgets.treeList/dataController.tests.js +++ b/testing/tests/DevExpress.ui.widgets.treeList/dataController.tests.js @@ -1203,7 +1203,7 @@ QUnit.module('Expand/Collapse nodes', { beforeEach: setupModule, afterEach: tear } }); clock.tick(30); - loadSpy.reset(); + loadSpy.resetHistory(); // act this.expandRow(1); diff --git a/testing/tests/DevExpress.ui.widgets.treeList/treeList.tests.js b/testing/tests/DevExpress.ui.widgets.treeList/treeList.tests.js index cea2a6b3d26..9fd617a66b6 100644 --- a/testing/tests/DevExpress.ui.widgets.treeList/treeList.tests.js +++ b/testing/tests/DevExpress.ui.widgets.treeList/treeList.tests.js @@ -1940,7 +1940,7 @@ QUnit.module('Scroll', defaultModuleConfig, () => { assert.equal($(treeList.getCellElement(0, 0)).text(), '0', 'first row first cell'); assert.equal($(treeList.getCellElement(1, 0)).text(), '1', 'second row first cell'); - loadSpy.reset(); + loadSpy.resetHistory(); }); // T991320 diff --git a/testing/tests/DevExpress.ui.widgets/draggable.tests.js b/testing/tests/DevExpress.ui.widgets/draggable.tests.js index f53a679c9a4..fb93a39f6f0 100644 --- a/testing/tests/DevExpress.ui.widgets/draggable.tests.js +++ b/testing/tests/DevExpress.ui.widgets/draggable.tests.js @@ -709,7 +709,7 @@ QUnit.module('Events', moduleConfig, () => { }, $('#items')); const pointer = this.pointer.down().move(0, 50); - onDragEnterSpy.reset(); + onDragEnterSpy.resetHistory(); // act pointer.move(0, 250).move(0, 50); @@ -735,7 +735,7 @@ QUnit.module('Events', moduleConfig, () => { }, $('#items')); const pointer = this.pointer.down().move(0, 300).move(0, 50); - onDragLeaveSpy.reset(); + onDragLeaveSpy.resetHistory(); // act pointer.move(0, -200); diff --git a/testing/tests/DevExpress.ui.widgets/fileManagerParts/contextMenu.tests.js b/testing/tests/DevExpress.ui.widgets/fileManagerParts/contextMenu.tests.js index a6dfc2e40b2..e97df123f4d 100644 --- a/testing/tests/DevExpress.ui.widgets/fileManagerParts/contextMenu.tests.js +++ b/testing/tests/DevExpress.ui.widgets/fileManagerParts/contextMenu.tests.js @@ -401,7 +401,7 @@ QUnit.module('Raise context menu', moduleConfig, () => { this.clock.tick(800); this.wrapper.getContextMenuItems().eq(0).trigger('dxclick'); - spy.reset(); + spy.resetHistory(); this.clock.tick(800); const $subItems = this.wrapper.getContextMenuSubMenuItems(); diff --git a/testing/tests/DevExpress.ui.widgets/listParts/liveUpdateTests.js b/testing/tests/DevExpress.ui.widgets/listParts/liveUpdateTests.js index 3e8ff96d549..a6f39a2a946 100644 --- a/testing/tests/DevExpress.ui.widgets/listParts/liveUpdateTests.js +++ b/testing/tests/DevExpress.ui.widgets/listParts/liveUpdateTests.js @@ -273,7 +273,7 @@ QUnit.module('live update', { const $moreButton = $('#templated-list .dx-list-next-button > .dx-button').eq(0); $moreButton.trigger('dxclick'); - this.itemRenderedSpy.reset(); + this.itemRenderedSpy.resetHistory(); const pushData = [ { type: 'update', data: { a: 'Item 0 Updated', id: 0 }, key: 0 }, { type: 'update', data: { a: 'Item 2 Updated', id: 2 }, key: 2 }, diff --git a/testing/tests/DevExpress.viz.core/baseAxis.tests.js b/testing/tests/DevExpress.viz.core/baseAxis.tests.js index 0fb563051e1..b7d0a2876a9 100644 --- a/testing/tests/DevExpress.viz.core/baseAxis.tests.js +++ b/testing/tests/DevExpress.viz.core/baseAxis.tests.js @@ -2154,7 +2154,7 @@ QUnit.test('T746896. Pass correct range to tick generator after syncroniztion', max: 250 }); - this.tickGeneratorSpy.reset(); + this.tickGeneratorSpy.resetHistory(); axis.createTicks(this.canvas); diff --git a/testing/tests/DevExpress.viz.funnel/funnel.base.tests.js b/testing/tests/DevExpress.viz.funnel/funnel.base.tests.js index 1eff3d4acb2..75f7bd07d8e 100644 --- a/testing/tests/DevExpress.viz.funnel/funnel.base.tests.js +++ b/testing/tests/DevExpress.viz.funnel/funnel.base.tests.js @@ -964,7 +964,7 @@ QUnit.test('selection changed event in single mode fire only for selected elemen const item = funnel.getAllItems()[0]; item.select(true); - spy.reset(); + spy.resetHistory(); funnel.getAllItems()[1].select(true); assert.equal(spy.callCount, 2); diff --git a/testing/tests/DevExpress.viz.gauges/barGauge.tests.js b/testing/tests/DevExpress.viz.gauges/barGauge.tests.js index c4df5ae958f..fab22bdfa03 100644 --- a/testing/tests/DevExpress.viz.gauges/barGauge.tests.js +++ b/testing/tests/DevExpress.viz.gauges/barGauge.tests.js @@ -944,7 +944,7 @@ QUnit.test('set values', function(assert) { values: [50], onDrawn: spy }); - spy.reset(); + spy.resetHistory(); gauge.values([10, '20', 30]); @@ -959,7 +959,7 @@ QUnit.test('set "values" option', function(assert) { values: [50], onDrawn: spy }); - spy.reset(); + spy.resetHistory(); gauge.option('values', [10, '20', 30]); @@ -974,7 +974,7 @@ QUnit.test('set values - scalar', function(assert) { values: [50], onDrawn: spy }); - spy.reset(); + spy.resetHistory(); gauge.values(80); @@ -989,7 +989,7 @@ QUnit.test('set values - not valid', function(assert) { values: [60, 70], onDrawn: spy }); - spy.reset(); + spy.resetHistory(); gauge.values({}); diff --git a/testing/tests/DevExpress.viz.gauges/common.tests.js b/testing/tests/DevExpress.viz.gauges/common.tests.js index 0f7c4cbe28d..ca3b1558b4f 100644 --- a/testing/tests/DevExpress.viz.gauges/common.tests.js +++ b/testing/tests/DevExpress.viz.gauges/common.tests.js @@ -20,7 +20,7 @@ const themeManagerModule = require('viz/gauges/theme_manager'); $('
').appendTo('#qunit-fixture'); -sinon.stub(rangeModule, 'Range', function(parameters) { +sinon.stub(rangeModule, 'Range').callFakes(function(parameters) { return new stubRange(parameters); }); @@ -75,7 +75,7 @@ tooltipModule.Tooltip = function(parameters) { return new StubTooltip(parameters); }; -sinon.stub(axisModule, 'Axis', function(parameters) { +sinon.stub(axisModule, 'Axis').callFakes(function(parameters) { return new vizMocks.Axis(parameters); }); @@ -173,7 +173,7 @@ loadingIndicatorModule.DEBUG_set_LoadingIndicator(function(parameters) { return new vizMocks.LoadingIndicator(parameters); }); -sinon.stub(rendererModule, 'Renderer', function() { +sinon.stub(rendererModule, 'Renderer').callFakes(function() { return currentTest().renderer; }); diff --git a/testing/tests/DevExpress.viz.rangeSelector/common.part3.tests.js b/testing/tests/DevExpress.viz.rangeSelector/common.part3.tests.js index a9e05d3ef4a..45ccd3a191d 100644 --- a/testing/tests/DevExpress.viz.rangeSelector/common.part3.tests.js +++ b/testing/tests/DevExpress.viz.rangeSelector/common.part3.tests.js @@ -1668,7 +1668,7 @@ QUnit.test('Render. Container size is changed - redraw widget', function(assert) const widget = this.createWidget({ onDrawn: spy }); setHeight(widget.$element(), getHeight(widget.$element()) + 1); - spy.reset(); + spy.resetHistory(); widget.render(); assert.strictEqual(spy.callCount, 1); @@ -1678,7 +1678,7 @@ QUnit.test('Render. Container size is not changed - do not redraw widget', funct const spy = sinon.spy(); const widget = this.createWidget({ onDrawn: spy }); - spy.reset(); + spy.resetHistory(); widget.render(); assert.strictEqual(spy.callCount, 0); diff --git a/testing/tests/DevExpress.viz.sankey/sankey.base.tests.js b/testing/tests/DevExpress.viz.sankey/sankey.base.tests.js index e80cd6fc712..9699ce74c7e 100644 --- a/testing/tests/DevExpress.viz.sankey/sankey.base.tests.js +++ b/testing/tests/DevExpress.viz.sankey/sankey.base.tests.js @@ -110,7 +110,7 @@ QUnit.test('Trigger error on invalid source data', function(assert) { const spy = sinon.spy(); invalidDataSets.forEach(function(data, dataIdx) { - spy.reset(); + spy.resetHistory(); createSankey({ layoutBuilder: layoutBuilder, dataSource: data, @@ -131,7 +131,7 @@ QUnit.test('Trigger "cycle detected" error on invalid source data', function(ass const spy = sinon.spy(); invalidDataSets.forEach(function(data) { - spy.reset(); + spy.resetHistory(); createSankey({ layoutBuilder: layoutBuilder, dataSource: data, diff --git a/testing/tests/DevExpress.viz.treeMap/drilldown.tests.js b/testing/tests/DevExpress.viz.treeMap/drilldown.tests.js index e537ff26159..000c5573078 100644 --- a/testing/tests/DevExpress.viz.treeMap/drilldown.tests.js +++ b/testing/tests/DevExpress.viz.treeMap/drilldown.tests.js @@ -55,7 +55,7 @@ QUnit.test('Drilldown to sibling', function(assert) { }); widget.getRootNode().getChild(0).drillDown(); this.renderer.simpleRect.reset(); - spy.reset(); + spy.resetHistory(); widget.getRootNode().getChild(1).drillDown(); @@ -106,7 +106,7 @@ QUnit.test('Reset drilldown', function(assert) { }); widget.getRootNode().getChild(0).getChild(0).drillDown(); this.renderer.simpleRect.reset(); - spy.reset(); + spy.resetHistory(); widget.resetDrillDown(); @@ -135,7 +135,7 @@ QUnit.test('Drill up', function(assert) { }); widget.getRootNode().getChild(0).getChild(0).drillDown(); this.renderer.simpleRect.reset(); - spy.reset(); + spy.resetHistory(); widget.drillUp(); diff --git a/testing/tests/DevExpress.viz.treeMap/hover.tests.js b/testing/tests/DevExpress.viz.treeMap/hover.tests.js index e44d8759ac2..44fa8eeb72b 100644 --- a/testing/tests/DevExpress.viz.treeMap/hover.tests.js +++ b/testing/tests/DevExpress.viz.treeMap/hover.tests.js @@ -106,7 +106,7 @@ QUnit.test('Turn tile hover on when another tile is hovered', function(assert) { onHoverChanged: spy }).getRootNode(); root.getChild(1).setHover(); - spy.reset(); + spy.resetHistory(); root.getChild(0).setHover(); @@ -200,7 +200,7 @@ QUnit.test('Turn group hover off', function(assert) { inner.smartAttr.reset(); tile1.smartAttr.reset(); tile2.smartAttr.reset(); - spy.reset(); + spy.resetHistory(); widget.clearHover(); @@ -238,7 +238,7 @@ QUnit.test('Turn group hover on when another group is hovered', function(assert) onHoverChanged: spy }).getRootNode(); root.getChild(1).setHover(); - spy.reset(); + spy.resetHistory(); root.getChild(0).setHover(); @@ -367,7 +367,7 @@ QUnit.test('Change hover mode', function(assert) { onHoverChanged: spy }); widget.getRootNode().getChild(0).setHover(); - spy.reset(); + spy.resetHistory(); widget.option('hoverEnabled', false); @@ -383,7 +383,7 @@ QUnit.test('Change hover mode of the group', function(assert) { onHoverChanged: spy }); widget.getRootNode().getChild(0).setHover(); - spy.reset(); + spy.resetHistory(); widget.option({ group: { hoverEnabled: false } }); diff --git a/testing/tests/DevExpress.viz.treeMap/selection.tests.js b/testing/tests/DevExpress.viz.treeMap/selection.tests.js index d627bb0167d..2469914037a 100644 --- a/testing/tests/DevExpress.viz.treeMap/selection.tests.js +++ b/testing/tests/DevExpress.viz.treeMap/selection.tests.js @@ -114,7 +114,7 @@ QUnit.test('Unselect group', function(assert) { root.getChild(0).select(true); outer.attr.reset(); inner.smartAttr.reset(); - spy.reset(); + spy.resetHistory(); root.getChild(0).select(false); @@ -132,7 +132,7 @@ QUnit.test('Select tile when another one is selected', function(assert) { onSelectionChanged: spy }).getRootNode(); root.getChild(0).select(true); - spy.reset(); + spy.resetHistory(); root.getChild(1).select(true); @@ -151,7 +151,7 @@ QUnit.test('Select tile when another one is selected - multiple selection', func selectionMode: 'MULTIPLE' }).getRootNode(); root.getChild(0).select(true); - spy.reset(); + spy.resetHistory(); root.getChild(1).select(true); @@ -183,7 +183,7 @@ QUnit.test('Clear selection', function(assert) { const root = widget.getRootNode(); root.getChild(0).select(true); root.getChild(1).select(true); - spy.reset(); + spy.resetHistory(); widget.clearSelection(); @@ -204,7 +204,7 @@ QUnit.test('Change from multiple to single', function(assert) { const root = widget.getRootNode(); root.getChild(1).select(true); root.getChild(0).select(true); - spy.reset(); + spy.resetHistory(); widget.option('selectionMode', 'SINGLE'); @@ -223,7 +223,7 @@ QUnit.test('Change from multiple to none', function(assert) { const root = widget.getRootNode(); root.getChild(0).select(true); root.getChild(1).select(true); - spy.reset(); + spy.resetHistory(); widget.option('selectionMode', 'NONE'); diff --git a/testing/tests/DevExpress.viz.treeMap/tracker.tests.js b/testing/tests/DevExpress.viz.treeMap/tracker.tests.js index 06b93bbd752..b2e95bbd9c2 100644 --- a/testing/tests/DevExpress.viz.treeMap/tracker.tests.js +++ b/testing/tests/DevExpress.viz.treeMap/tracker.tests.js @@ -199,7 +199,7 @@ QUnit.test('Hover off', function(assert) { onHoverChanged: spy }); this.trigger(pointerEvents.move, 2); - spy.reset(); + spy.resetHistory(); this.trigger(pointerEvents.move, 1); @@ -231,7 +231,7 @@ QUnit.test('Hovering same element several times does not cause hover changes', f onHoverChanged: spy }); this.trigger(pointerEvents.move, 2); - spy.reset(); + spy.resetHistory(); this.trigger(pointerEvents.move, 2); this.trigger(pointerEvents.move, 2); @@ -247,7 +247,7 @@ QUnit.test('Hovering unknown element turns current hover off', function(assert) onHoverChanged: spy }); this.trigger(pointerEvents.move, 2); - spy.reset(); + spy.resetHistory(); this.trigger(pointerEvents.move, 'test');