aboutsummaryrefslogtreecommitdiff
path: root/vnext/server/middleware/mastodon.spec.js
blob: 7f30d027b7e3f95d9a35e126a2fb2ffaee8d03c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/**
 * @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)
            })
    })
})