aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/utils/users
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/utils/users')
-rw-r--r--server/tests/utils/users/accounts.ts5
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
3import { expect } from 'chai' 3import { expect } from 'chai'
4import { existsSync } from 'fs-extra' 4import { existsSync, readdir } from 'fs-extra'
5import { join } from 'path' 5import { join } from 'path'
6import { Account } from '../../../../shared/models/actors' 6import { Account } from '../../../../shared/models/actors'
7import { readdirPromise } from '../../../helpers/core-utils'
8import { root } from '../index' 7import { root } from '../index'
9import { makeGetRequest } from '../requests/requests' 8import { 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 }