1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +01:00

fix: update addon counter to include new relic addon

This commit is contained in:
Christopher Kolstad 2024-07-05 15:17:45 +02:00
parent 9fae7801ed
commit d8bb9f18de
No known key found for this signature in database
GPG Key ID: D9041DC670F032F3

View File

@ -27,15 +27,13 @@ afterAll(async () => {
}); });
test('gets all addons', async () => { test('gets all addons', async () => {
expect.assertions(3); await app.request
return app.request
.get('/api/admin/addons') .get('/api/admin/addons')
.expect('Content-Type', /json/) .expect('Content-Type', /json/)
.expect(200) .expect(200)
.expect((res) => { .expect((res) => {
expect(res.body.addons.length).toBe(0); expect(res.body.addons.length).toBe(0);
expect(res.body.providers.length).toBe(5); expect(res.body.providers.length).toBe(6);
expect(res.body.providers[0].name).toBe('webhook'); expect(res.body.providers[0].name).toBe('webhook');
}); });
}); });