Skip to content
This repository was archived by the owner on Jun 15, 2021. It is now read-only.

Commit d7e1aea

Browse files
committed
tests: Fixes code coverage.
1 parent 0a076bf commit d7e1aea

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"check-coverage": true
2626
},
2727
"dependencies": {
28-
"@js-entity-repos/core": "^2.0.6",
28+
"@js-entity-repos/core": "^2.0.7",
2929
"lodash": "^4.17.4",
3030
"sift": "^5.0.0"
3131
},

src/functions/getEntity.ts

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default <Id, Entity>(config: Config<Entity>): GetEntity<Id, Entity> => {
1111
if (matchedEntities.length === 0) {
1212
throw new MissingEntityError(config.entityName, id);
1313
}
14+
/* istanbul ignore next */
1415
if (matchedEntities.length > 1) {
1516
throw new ConflictingEntityError(config.entityName, id);
1617
}

src/functions/overwriteEntity.ts

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default <Id, Entity>(config: Config<Entity>): OverwriteEntity<Id, Entity>
1111
if (matchedEntities.length === 0) {
1212
throw new MissingEntityError(config.entityName, id);
1313
}
14+
/* istanbul ignore next */
1415
if (matchedEntities.length > 1) {
1516
throw new ConflictingEntityError(config.entityName, id);
1617
}

src/functions/patchEntity.ts

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default <Id, Entity>(config: Config<Entity>): PatchEntity<Id, Entity> =>
1111
if (matchedEntities.length === 0) {
1212
throw new MissingEntityError(config.entityName, id);
1313
}
14+
/* istanbul ignore next */
1415
if (matchedEntities.length > 1) {
1516
throw new ConflictingEntityError(config.entityName, id);
1617
}

src/functions/removeEntity.ts

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default <Id, Entity>(config: Config<Entity>): RemoveEntity<Id> => {
1111
if (unmatchedEntities.length === storedEntities.length) {
1212
throw new MissingEntityError(config.entityName, id);
1313
}
14+
/* istanbul ignore next */
1415
if ((unmatchedEntities.length + 1) !== storedEntities.length) {
1516
throw new ConflictingEntityError(config.entityName, id);
1617
}

0 commit comments

Comments
 (0)