X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fplugins%2Fplugin-helpers.ts;h=5e8d08dff7154b43b88098ed89e251cfa12e7a32;hb=c8fa571f32b10c083fab07f28d2ef55895ef40af;hp=da84658bbd04908b4509c1bd52a37ac9660910b9;hpb=754c52b9b998a825fd830d5ac527a67e0eefeb9a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/plugins/plugin-helpers.ts b/server/tests/plugins/plugin-helpers.ts index da84658bb..5e8d08dff 100644 --- a/server/tests/plugins/plugin-helpers.ts +++ b/server/tests/plugins/plugin-helpers.ts @@ -3,8 +3,8 @@ import 'mocha' import { expect } from 'chai' import { pathExists } from 'fs-extra' +import { HttpStatusCode, ThumbnailType } from '@shared/models' import { - checkVideoFilesWereRemoved, cleanupTests, createMultipleServers, doubleFollow, @@ -15,8 +15,8 @@ import { PluginsCommand, setAccessTokensToServers, waitJobs -} from '@shared/extra-utils' -import { HttpStatusCode, ThumbnailType } from '@shared/models' +} from '@shared/server-commands' +import { checkVideoFilesWereRemoved } from '../shared' function postCommand (server: PeerTubeServer, command: string, bodyArg?: object) { const body = { command } @@ -301,7 +301,7 @@ describe('Test plugin helpers', function () { // Should not throw -> video exists const video = await servers[0].videos.get({ id: videoUUID }) // Should delete the video - await servers[0].videos.view({ id: videoUUID }) + await servers[0].views.simulateView({ id: videoUUID }) await servers[0].servers.waitUntilLog('Video deleted by plugin four.')