+ await service.handlerGetHistorySVG(req, res, ctx);
+ assert(service.manager.getHistorySVG.called);
+ });
+ }); // handlerGetHistorySVG
+
+ describe('handlerGetAdminOverview', function () {
+ it('covers authenticated', async function () {
+ service.authenticator.sessionRequired.resolves(false);
+ await service.handlerGetAdminOverview(req, res, ctx);
+ assert(service.authenticator.sessionRequired.called);
+ assert(service.manager.getAdminOverview.notCalled);
+ });
+ it('covers unauthenticated', async function () {
+ service.authenticator.sessionRequired.resolves(true);