Skip to content

Commit

Permalink
Fix lgtm alerts (#200)
Browse files Browse the repository at this point in the history
* move types to types folder, fix typing

* fix lgtm alerts
  • Loading branch information
Uzlopak committed Aug 19, 2022
1 parent 584b110 commit 0b13983
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,15 @@ const routeHelmetOptions = {
}
}
};
expectAssignable<FastifyHelmetRouteOptions>(routeHelmetOptions)
expectAssignable<FastifyHelmetRouteOptions>(routeHelmetOptions);

appEight.get('/enabled-helmet', routeHelmetOptions, function (request, reply) {
expectType<typeof helmet>(reply.helmet());
expectType<{
script: string;
style: string;
}>(reply.cspNonce);
})
});

appEight.get('/enable-framegard', {
helmet: { frameguard: true }
Expand All @@ -177,7 +177,7 @@ appEight.get('/enable-framegard', {
script: string;
style: string;
}>(reply.cspNonce);
})
});

// Plugin registered with an invalid helmet option
const appThatTriggerAnError = fastify();
Expand Down

0 comments on commit 0b13983

Please sign in to comment.