e22m4u 6 дней назад
Родитель
Сommit
05e6186bb7
2 измененных файлов с 8 добавлено и 8 удалено
  1. 3 3
      package.json
  2. 5 5
      src/data-schema-registry.spec.js

+ 3 - 3
package.json

@@ -41,8 +41,8 @@
     "@e22m4u/js-service": "~0.5.1"
     "@e22m4u/js-service": "~0.5.1"
   },
   },
   "devDependencies": {
   "devDependencies": {
-    "@commitlint/cli": "~20.3.0",
-    "@commitlint/config-conventional": "~20.3.0",
+    "@commitlint/cli": "~20.3.1",
+    "@commitlint/config-conventional": "~20.3.1",
     "@eslint/js": "~9.39.2",
     "@eslint/js": "~9.39.2",
     "@types/chai": "~5.2.3",
     "@types/chai": "~5.2.3",
     "@types/mocha": "~10.0.10",
     "@types/mocha": "~10.0.10",
@@ -53,7 +53,7 @@
     "eslint-config-prettier": "~10.1.8",
     "eslint-config-prettier": "~10.1.8",
     "eslint-plugin-chai-expect": "~3.1.0",
     "eslint-plugin-chai-expect": "~3.1.0",
     "eslint-plugin-import": "~2.32.0",
     "eslint-plugin-import": "~2.32.0",
-    "eslint-plugin-jsdoc": "~61.5.0",
+    "eslint-plugin-jsdoc": "~62.0.0",
     "eslint-plugin-mocha": "~11.2.0",
     "eslint-plugin-mocha": "~11.2.0",
     "globals": "~17.0.0",
     "globals": "~17.0.0",
     "husky": "~9.1.7",
     "husky": "~9.1.7",

+ 5 - 5
src/data-schema-registry.spec.js

@@ -4,7 +4,7 @@ import {DataSchemaRegistry} from './data-schema-registry.js';
 
 
 describe('DataSchemaRegistry', function () {
 describe('DataSchemaRegistry', function () {
   describe('defineSchema', function () {
   describe('defineSchema', function () {
-    it('should register the given definition', function () {
+    it('should register a given definition', function () {
       const S = new DataSchemaRegistry();
       const S = new DataSchemaRegistry();
       const schemaDef = {name: 'mySchema', schema: {}};
       const schemaDef = {name: 'mySchema', schema: {}};
       S.defineSchema(schemaDef);
       S.defineSchema(schemaDef);
@@ -32,7 +32,7 @@ describe('DataSchemaRegistry', function () {
   });
   });
 
 
   describe('hasSchema', function () {
   describe('hasSchema', function () {
-    it('should return true if the given name is registered', function () {
+    it('should return true if a given name is registered', function () {
       const S = new DataSchemaRegistry();
       const S = new DataSchemaRegistry();
       const schemaDef = {name: 'mySchema', schema: {}};
       const schemaDef = {name: 'mySchema', schema: {}};
       expect(S.hasSchema(schemaDef.name)).to.be.false;
       expect(S.hasSchema(schemaDef.name)).to.be.false;
@@ -42,13 +42,13 @@ describe('DataSchemaRegistry', function () {
   });
   });
 
 
   describe('getSchema', function () {
   describe('getSchema', function () {
-    it('should throw an error if the given name is not registered', function () {
+    it('should throw an error if a given name is not registered', function () {
       const S = new DataSchemaRegistry();
       const S = new DataSchemaRegistry();
       const throwable = () => S.getSchema('mySchema');
       const throwable = () => S.getSchema('mySchema');
       expect(throwable).to.throw('Data schema "mySchema" is not found.');
       expect(throwable).to.throw('Data schema "mySchema" is not found.');
     });
     });
 
 
-    it('should return the schema part of a registered definition for a given name', function () {
+    it('should return the schema property of a registered definition', function () {
       const S = new DataSchemaRegistry();
       const S = new DataSchemaRegistry();
       const schemaDef = {name: 'mySchema', schema: {}};
       const schemaDef = {name: 'mySchema', schema: {}};
       S.defineSchema(schemaDef);
       S.defineSchema(schemaDef);
@@ -58,7 +58,7 @@ describe('DataSchemaRegistry', function () {
   });
   });
 
 
   describe('getDefinition', function () {
   describe('getDefinition', function () {
-    it('should throw an error if the given name is not registered', function () {
+    it('should throw an error if a given name is not registered', function () {
       const S = new DataSchemaRegistry();
       const S = new DataSchemaRegistry();
       const throwable = () => S.getDefinition('mySchema');
       const throwable = () => S.getDefinition('mySchema');
       expect(throwable).to.throw('Schema definition "mySchema" is not found.');
       expect(throwable).to.throw('Schema definition "mySchema" is not found.');