+async function checkActorFilesWereRemoved (actorUUID: string, serverNumber: number) {
+ const testDirectory = 'test' + serverNumber
+
+ for (const directory of [ 'avatars' ]) {
+ const directoryPath = join(root(), testDirectory, directory)
+
+ const directoryExists = existsSync(directoryPath)
+ expect(directoryExists).to.be.true
+
+ const files = await readdirPromise(directoryPath)
+ for (const file of files) {
+ expect(file).to.not.contain(actorUUID)
+ }
+ }
+}
+