/** * @jest-environment node */ import request from 'supertest' import { app } from '../app' describe('Mastodon API middleware', () => { it('Inactive users should not be included in Instance response', async () => { return request(app) .get('/api/v2/instance') .expect(200) .then(response => { expect(response.body.usage.users.active_month).toStrictEqual(1) }) }) })