From 49f519a75f852be0f4d3dee78c67007c301e8d34 Mon Sep 17 00:00:00 2001 From: Gavin Rehkemper Date: Mon, 27 Jun 2022 11:48:59 -0500 Subject: [PATCH] switched to karma-sinon-chai --- karma.conf.js | 2 +- package-lock.json | 42 +++++++++++++++++++----------------------- package.json | 2 +- 3 files changed, 21 insertions(+), 25 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index 3c402234a..a7766dec0 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -7,7 +7,7 @@ module.exports = function (config) { // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ['mocha', 'chai-sinon'], + frameworks: ['mocha', 'sinon-chai'], // list of files / patterns to load in the browser // not sure why tests are failing when files are loaded in bulk diff --git a/package-lock.json b/package-lock.json index a12ece54c..8c55b8f09 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,6 @@ "http-server": "^14.1.0", "husky": "^1.1.1", "karma": "^6.3.18", - "karma-chai-sinon": "^0.1.5", "karma-chrome-launcher": "^3.1.1", "karma-coverage": "^2.2.0", "karma-edgium-launcher": "github:matracey/karma-edgium-launcher", @@ -30,6 +29,7 @@ "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5", "karma-safari-launcher": "~1.0.0", + "karma-sinon-chai": "^2.0.2", "karma-sourcemap-loader": "^0.3.8", "leaflet": "^1.6.0", "mkdirp": "^1.0.4", @@ -4809,21 +4809,6 @@ "node": ">= 10" } }, - "node_modules/karma-chai-sinon": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/karma-chai-sinon/-/karma-chai-sinon-0.1.5.tgz", - "integrity": "sha1-XDksqVJHgYlR1rV5AvAsNugDdTo=", - "dev": true, - "engines": { - "node": ">=0.8" - }, - "peerDependencies": { - "chai": "*", - "karma": ">=0.6", - "sinon": "*", - "sinon-chai": "*" - } - }, "node_modules/karma-chrome-launcher": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/karma-chrome-launcher/-/karma-chrome-launcher-3.1.1.tgz", @@ -4972,6 +4957,17 @@ "karma": ">=0.9" } }, + "node_modules/karma-sinon-chai": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/karma-sinon-chai/-/karma-sinon-chai-2.0.2.tgz", + "integrity": "sha512-SDgh6V0CUd+7ruL1d3yG6lFzmJNGRNQuEuCYXLaorruNP9nwQfA7hpsp4clx4CbOo5Gsajh3qUOT7CrVStUKMw==", + "dev": true, + "peerDependencies": { + "chai": ">=3.5.0", + "sinon": ">=2.1.0", + "sinon-chai": ">=2.9.0" + } + }, "node_modules/karma-sourcemap-loader": { "version": "0.3.8", "resolved": "https://registry.npmjs.org/karma-sourcemap-loader/-/karma-sourcemap-loader-0.3.8.tgz", @@ -12374,13 +12370,6 @@ } } }, - "karma-chai-sinon": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/karma-chai-sinon/-/karma-chai-sinon-0.1.5.tgz", - "integrity": "sha1-XDksqVJHgYlR1rV5AvAsNugDdTo=", - "dev": true, - "requires": {} - }, "karma-chrome-launcher": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/karma-chrome-launcher/-/karma-chrome-launcher-3.1.1.tgz", @@ -12503,6 +12492,13 @@ "dev": true, "requires": {} }, + "karma-sinon-chai": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/karma-sinon-chai/-/karma-sinon-chai-2.0.2.tgz", + "integrity": "sha512-SDgh6V0CUd+7ruL1d3yG6lFzmJNGRNQuEuCYXLaorruNP9nwQfA7hpsp4clx4CbOo5Gsajh3qUOT7CrVStUKMw==", + "dev": true, + "requires": {} + }, "karma-sourcemap-loader": { "version": "0.3.8", "resolved": "https://registry.npmjs.org/karma-sourcemap-loader/-/karma-sourcemap-loader-0.3.8.tgz", diff --git a/package.json b/package.json index 3014a5592..58bb1b170 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,6 @@ "http-server": "^14.1.0", "husky": "^1.1.1", "karma": "^6.3.18", - "karma-chai-sinon": "^0.1.5", "karma-chrome-launcher": "^3.1.1", "karma-coverage": "^2.2.0", "karma-edgium-launcher": "github:matracey/karma-edgium-launcher", @@ -34,6 +33,7 @@ "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5", "karma-safari-launcher": "~1.0.0", + "karma-sinon-chai": "^2.0.2", "karma-sourcemap-loader": "^0.3.8", "leaflet": "^1.6.0", "mkdirp": "^1.0.4",