blob: 561303bc3447670bad51f667ecb51ee7cddadaea (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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)
})
})
})
|