diff --git a/package.json b/package.json index e98f631..186a4db 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "functional-models", - "version": "3.0.3", + "version": "3.0.4", "description": "Functional models is ooey gooey framework for building and using awesome models EVERYWHERE.", "main": "index.js", "types": "index.d.ts", "scripts": { - "test": "mocha -r tsx --extensions ts,tsx 'test/**/*.{ts,tsx}'", "mocha": "mocha -r tsx", + "test": "mocha -r tsx --extensions ts,tsx 'test/**/*.{ts,tsx}'", "test:coverage": "TS_NODE_PROJECT=tsconfig.test.json nyc npm run test", "test:watch": "nodemon -e '*' --watch test --watch src --exec npm run test:coverage", "commit": "cz", diff --git a/src/models.ts b/src/models.ts index 5bd888d..adab814 100644 --- a/src/models.ts +++ b/src/models.ts @@ -63,7 +63,7 @@ const _validateModelDefinition = ( modelDefinition.properties[modelDefinition.primaryKeyName || 'id'] if (!primaryKeyProperty) { throw new Error( - `Property missing for primaryKey named ${modelDefinition.primaryKeyName}` + `Property missing for primaryKey named ${primaryKeyProperty}` ) } if (!modelDefinition.pluralName) {