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

+ 5 - 5
package.json

@@ -38,17 +38,17 @@
     "prepare": "husky"
   },
   "dependencies": {
-    "@e22m4u/js-format": "~0.2.0",
+    "@e22m4u/js-format": "~0.2.1",
     "util": "~0.12.5"
   },
   "devDependencies": {
     "@commitlint/cli": "~20.1.0",
     "@commitlint/config-conventional": "~20.0.0",
-    "@e22m4u/js-spy": "~0.0.3",
+    "@e22m4u/js-spy": "~0.1.0",
     "@eslint/js": "~9.39.1",
     "c8": "~10.1.3",
-    "chai": "~6.2.0",
-    "esbuild": "~0.25.12",
+    "chai": "~6.2.1",
+    "esbuild": "~0.27.0",
     "eslint": "~9.39.1",
     "eslint-config-prettier": "~10.1.8",
     "eslint-plugin-chai-expect": "~3.1.0",
@@ -57,7 +57,7 @@
     "husky": "~9.1.7",
     "mocha": "~11.7.5",
     "prettier": "~3.6.2",
-    "rimraf": "~6.1.0",
+    "rimraf": "~6.1.2",
     "typescript": "~5.9.3"
   }
 }

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

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