diff options
Diffstat (limited to 'server/tests/shared/video-playlists.ts')
-rw-r--r-- | server/tests/shared/video-playlists.ts | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/server/tests/shared/video-playlists.ts b/server/tests/shared/video-playlists.ts deleted file mode 100644 index 8db303fd8..000000000 --- a/server/tests/shared/video-playlists.ts +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | import { expect } from 'chai' | ||
2 | import { readdir } from 'fs-extra' | ||
3 | import { PeerTubeServer } from '@shared/server-commands' | ||
4 | |||
5 | async function checkPlaylistFilesWereRemoved ( | ||
6 | playlistUUID: string, | ||
7 | server: PeerTubeServer, | ||
8 | directories = [ 'thumbnails' ] | ||
9 | ) { | ||
10 | for (const directory of directories) { | ||
11 | const directoryPath = server.getDirectoryPath(directory) | ||
12 | |||
13 | const files = await readdir(directoryPath) | ||
14 | for (const file of files) { | ||
15 | expect(file).to.not.contain(playlistUUID) | ||
16 | } | ||
17 | } | ||
18 | } | ||
19 | |||
20 | export { | ||
21 | checkPlaylistFilesWereRemoved | ||
22 | } | ||