import 'mocha'
import * as chai from 'chai'
-import { HttpStatusCode } from '@shared/models'
import {
cleanupTests,
createSingleServer,
testImage,
waitJobs
} from '@shared/extra-utils'
-import { AbuseState, OAuth2ErrorCode, UserAdminFlag, UserRole, Video, VideoPlaylistType } from '@shared/models'
+import { AbuseState, HttpStatusCode, OAuth2ErrorCode, UserAdminFlag, UserRole, Video, VideoPlaylistType } from '@shared/models'
const expect = chai.expect
token = 'my_super_token'
await server.follows.follow({
- targets: [ 'http://example.com' ],
+ hosts: [ 'http://example.com' ],
token,
expectedStatus: HttpStatusCode.UNAUTHORIZED_401
})