Skip to content

Commit

Permalink
coverage comments
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Feb 29, 2024
1 parent ca37ebc commit 7d00736
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class Config {

function applyDefaults(cfg = {}, defaults = {}) {
for (const d in defaults) {
/* c8 ignore next */
if (d === "__proto__" || d === "constructor") continue;
if ([undefined, null].includes(cfg[d])) {
cfg[d] = defaults[d]
Expand Down
1 change: 1 addition & 0 deletions routes/group.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ function GroupRoutes(server) {
},
handler: async (request, h) => {
const groups = await Group.get(request.params)
/* c8 ignore next 10 */
if (groups.length !== 1) {
return h
.response({
Expand Down
1 change: 1 addition & 0 deletions routes/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ function UserRoutes(server) {
handler: async (request, h) => {
const users = await User.get(request.params)
if (users.length !== 1) {
/* c8 ignore next 8 */
return h
.response({
meta: {
Expand Down

0 comments on commit 7d00736

Please sign in to comment.