Skip to content

Commit

Permalink
corrected testing syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
akobaidan committed Oct 20, 2024
1 parent 363d137 commit 389026f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/controllers-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ describe('Admin Controllers', () => {
it('should load admin dashboard with bug-logs', async () => {
await groups.join('administrators', adminUid);
const dashboards = [
'/admin', '/admin/dashboard/logins', '/admin/dashboard/users', '/admin/dashboard/topics', '/admin/dashboard/searches', 'admin/dashboard/bug-logs',
'/admin', '/admin/dashboard/logins', '/admin/dashboard/users', '/admin/dashboard/topics', '/admin/dashboard/searches', 'admin/dashboard/bug-logs',
];
await async.each(dashboards, async (url) => {
const { response, body } = await request.get(`${nconf.get('url')}${url}`, { jar: jar });
assert.equal(response.statusCode, 200, url);
assert(body);
});
});
}); // Ensure no tab characters or trailing spaces here

it('should load admin analytics', async () => {
const { response, body } = await request.get(`${nconf.get('url')}/api/admin/analytics?units=hours`, { jar: jar });
Expand Down

0 comments on commit 389026f

Please sign in to comment.