e22m4u 1 месяц назад
Родитель
Сommit
9b350c53ff
2 измененных файлов с 9 добавлено и 9 удалено
  1. 5 5
      package.json
  2. 4 4
      src/create-debugger.spec.js

+ 5 - 5
package.json

@@ -42,20 +42,20 @@
     "util": "~0.12.5"
   },
   "devDependencies": {
-    "@commitlint/cli": "~20.1.0",
-    "@commitlint/config-conventional": "~20.0.0",
-    "@e22m4u/js-spy": "~0.3.0",
+    "@commitlint/cli": "~20.2.0",
+    "@commitlint/config-conventional": "~20.2.0",
+    "@e22m4u/js-spy": "~0.3.5",
     "@eslint/js": "~9.39.1",
     "@types/chai": "~5.2.3",
     "@types/mocha": "~10.0.10",
     "c8": "~10.1.3",
     "chai": "~6.2.1",
-    "esbuild": "~0.27.0",
+    "esbuild": "~0.27.1",
     "eslint": "~9.39.1",
     "eslint-config-prettier": "~10.1.8",
     "eslint-plugin-chai-expect": "~3.1.0",
     "eslint-plugin-import": "~2.32.0",
-    "eslint-plugin-jsdoc": "~61.4.1",
+    "eslint-plugin-jsdoc": "~61.5.0",
     "eslint-plugin-mocha": "~11.2.0",
     "globals": "~16.5.0",
     "husky": "~9.1.7",

+ 4 - 4
src/create-debugger.spec.js

@@ -93,7 +93,7 @@ describe('createDebugger', function () {
       process.env.DEBUG = 'other';
       const debug = createDebugger('test');
       debug('hello world');
-      expect(consoleLogSpy.isCalled).to.be.false;
+      expect(consoleLogSpy.called).to.be.false;
     });
 
     it('should output formatted string messages using %s, %v, %l', function () {
@@ -302,14 +302,14 @@ describe('createDebugger', function () {
       process.env.DEBUG = 'app:service';
       const debug = createDebugger('app:service');
       debug('message');
-      expect(consoleLogSpy.isCalled).to.be.true;
+      expect(consoleLogSpy.called).to.be.true;
     });
 
     it('should disable debugger if no match in DEBUG', function () {
       process.env.DEBUG = 'app:other';
       const debug = createDebugger('app:service');
       debug('message');
-      expect(consoleLogSpy.isCalled).to.be.false;
+      expect(consoleLogSpy.called).to.be.false;
     });
 
     it('should enable debugger based on wildcard match in DEBUG (*)', function () {
@@ -583,7 +583,7 @@ describe('createDebugger', function () {
       process.env.DEBUG = 'other';
       const debug = createDebugger('app');
       debug.inspect({a: 1});
-      expect(consoleLogSpy.isCalled).to.be.false;
+      expect(consoleLogSpy.called).to.be.false;
     });
 
     it('should output a colorized dump of a single argument', function () {