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:
parent
9fae7801ed
commit
d8bb9f18de
@ -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');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user