import 'mocha'
-import { flushTests, killallServers, runServer, ServerInfo } from '../../utils'
-import { checkBadCountPagination, checkBadSortPagination, checkBadStartPagination } from '../../utils/requests/check-api-params'
-import { getAccount } from '../../utils/users/accounts'
-
-describe('Test users API validators', function () {
+import { flushTests, killallServers, runServer, ServerInfo } from '../../../../shared/utils'
+import {
+ checkBadCountPagination,
+ checkBadSortPagination,
+ checkBadStartPagination
+} from '../../../../shared/utils/requests/check-api-params'
+import { getAccount } from '../../../../shared/utils/users/accounts'
+
+describe('Test accounts API validators', function () {
const path = '/api/v1/accounts/'
let server: ServerInfo
})
describe('When getting an account', function () {
- it('Should return 404 with a non existing id', async function () {
- await getAccount(server.url, 4545454, 404)
+ it('Should return 404 with a non existing name', async function () {
+ await getAccount(server.url, 'arfaze', 404)
})
})