test: Cover not found responses for API endpoint tests

This commit is contained in:
Faruk AYDIN
2024-02-26 01:40:20 +01:00
parent 4afe7c6b46
commit 404ea94dd2
7 changed files with 76 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
import logger from './logger.js';
import { NotFoundError, DataError } from 'objection';
import objection from 'objection';
const { NotFoundError, DataError } = objection;
// Do not remove `next` argument as the function signature will not fit for an error handler middleware
// eslint-disable-next-line no-unused-vars