From 62689b942b71cd1dd0d050c6ed05f884a0b325c2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 27 Aug 2018 16:23:34 +0200 Subject: Correctly migrate to fs-extra --- server/tests/utils/users/accounts.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'server/tests/utils/users') 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 @@ /* tslint:disable:no-unused-expression */ import { expect } from 'chai' -import { existsSync } from 'fs-extra' +import { existsSync, readdir } from 'fs-extra' import { join } from 'path' import { Account } from '../../../../shared/models/actors' -import { readdirPromise } from '../../../helpers/core-utils' import { root } from '../index' import { makeGetRequest } from '../requests/requests' @@ -47,7 +46,7 @@ async function checkActorFilesWereRemoved (actorUUID: string, serverNumber: numb const directoryExists = existsSync(directoryPath) expect(directoryExists).to.be.true - const files = await readdirPromise(directoryPath) + const files = await readdir(directoryPath) for (const file of files) { expect(file).to.not.contain(actorUUID) } -- cgit v1.2.3