diff options
Diffstat (limited to 'server/tests/utils/users')
-rw-r--r-- | server/tests/utils/users/accounts.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/tests/utils/users/accounts.ts b/server/tests/utils/users/accounts.ts index 024a315c7..f82b8d906 100644 --- a/server/tests/utils/users/accounts.ts +++ b/server/tests/utils/users/accounts.ts | |||
@@ -1,10 +1,9 @@ | |||
1 | /* tslint:disable:no-unused-expression */ | 1 | /* tslint:disable:no-unused-expression */ |
2 | 2 | ||
3 | import { expect } from 'chai' | 3 | import { expect } from 'chai' |
4 | import { existsSync } from 'fs-extra' | 4 | import { existsSync, readdir } from 'fs-extra' |
5 | import { join } from 'path' | 5 | import { join } from 'path' |
6 | import { Account } from '../../../../shared/models/actors' | 6 | import { Account } from '../../../../shared/models/actors' |
7 | import { readdirPromise } from '../../../helpers/core-utils' | ||
8 | import { root } from '../index' | 7 | import { root } from '../index' |
9 | import { makeGetRequest } from '../requests/requests' | 8 | import { makeGetRequest } from '../requests/requests' |
10 | 9 | ||
@@ -47,7 +46,7 @@ async function checkActorFilesWereRemoved (actorUUID: string, serverNumber: numb | |||
47 | const directoryExists = existsSync(directoryPath) | 46 | const directoryExists = existsSync(directoryPath) |
48 | expect(directoryExists).to.be.true | 47 | expect(directoryExists).to.be.true |
49 | 48 | ||
50 | const files = await readdirPromise(directoryPath) | 49 | const files = await readdir(directoryPath) |
51 | for (const file of files) { | 50 | for (const file of files) { |
52 | expect(file).to.not.contain(actorUUID) | 51 | expect(file).to.not.contain(actorUUID) |
53 | } | 52 | } |