diff options
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r-- | server/tests/api/videos/video-channels.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/server/tests/api/videos/video-channels.ts b/server/tests/api/videos/video-channels.ts index 454a96da6..8d33c6025 100644 --- a/server/tests/api/videos/video-channels.ts +++ b/server/tests/api/videos/video-channels.ts | |||
@@ -59,8 +59,8 @@ describe('Test a video channels', function () { | |||
59 | expect(userInfo.videoChannels).to.have.lengthOf(2) | 59 | expect(userInfo.videoChannels).to.have.lengthOf(2) |
60 | 60 | ||
61 | const videoChannels = userInfo.videoChannels | 61 | const videoChannels = userInfo.videoChannels |
62 | expect(videoChannels[0].name).to.equal('Default root channel') | 62 | expect(videoChannels[0].displayName).to.equal('Default root channel') |
63 | expect(videoChannels[1].name).to.equal('second video channel') | 63 | expect(videoChannels[1].displayName).to.equal('second video channel') |
64 | expect(videoChannels[1].description).to.equal('super video channel description') | 64 | expect(videoChannels[1].description).to.equal('super video channel description') |
65 | }) | 65 | }) |
66 | 66 | ||
@@ -72,8 +72,8 @@ describe('Test a video channels', function () { | |||
72 | expect(res.body.data).to.have.lengthOf(2) | 72 | expect(res.body.data).to.have.lengthOf(2) |
73 | 73 | ||
74 | const videoChannels = res.body.data | 74 | const videoChannels = res.body.data |
75 | expect(videoChannels[0].name).to.equal('Default root channel') | 75 | expect(videoChannels[0].displayName).to.equal('Default root channel') |
76 | expect(videoChannels[1].name).to.equal('second video channel') | 76 | expect(videoChannels[1].displayName).to.equal('second video channel') |
77 | expect(videoChannels[1].description).to.equal('super video channel description') | 77 | expect(videoChannels[1].description).to.equal('super video channel description') |
78 | 78 | ||
79 | videoChannelId = videoChannels[1].id | 79 | videoChannelId = videoChannels[1].id |
@@ -85,7 +85,7 @@ describe('Test a video channels', function () { | |||
85 | expect(res.body.total).to.equal(2) | 85 | expect(res.body.total).to.equal(2) |
86 | expect(res.body.data).to.be.an('array') | 86 | expect(res.body.data).to.be.an('array') |
87 | expect(res.body.data).to.have.lengthOf(1) | 87 | expect(res.body.data).to.have.lengthOf(1) |
88 | expect(res.body.data[0].name).to.equal('Default root channel') | 88 | expect(res.body.data[0].displayName).to.equal('Default root channel') |
89 | }) | 89 | }) |
90 | 90 | ||
91 | it('Should update video channel', async () => { | 91 | it('Should update video channel', async () => { |
@@ -103,7 +103,7 @@ describe('Test a video channels', function () { | |||
103 | expect(res.body.total).to.equal(2) | 103 | expect(res.body.total).to.equal(2) |
104 | expect(res.body.data).to.be.an('array') | 104 | expect(res.body.data).to.be.an('array') |
105 | expect(res.body.data).to.have.lengthOf(1) | 105 | expect(res.body.data).to.have.lengthOf(1) |
106 | expect(res.body.data[0].name).to.equal('video channel updated') | 106 | expect(res.body.data[0].displayName).to.equal('video channel updated') |
107 | expect(res.body.data[0].description).to.equal('video channel description updated') | 107 | expect(res.body.data[0].description).to.equal('video channel description updated') |
108 | }) | 108 | }) |
109 | 109 | ||
@@ -111,7 +111,7 @@ describe('Test a video channels', function () { | |||
111 | const res = await getVideoChannel(server.url, videoChannelId) | 111 | const res = await getVideoChannel(server.url, videoChannelId) |
112 | 112 | ||
113 | const videoChannel = res.body | 113 | const videoChannel = res.body |
114 | expect(videoChannel.name).to.equal('video channel updated') | 114 | expect(videoChannel.displayName).to.equal('video channel updated') |
115 | expect(videoChannel.description).to.equal('video channel description updated') | 115 | expect(videoChannel.description).to.equal('video channel description updated') |
116 | }) | 116 | }) |
117 | 117 | ||
@@ -125,7 +125,7 @@ describe('Test a video channels', function () { | |||
125 | expect(res.body.total).to.equal(1) | 125 | expect(res.body.total).to.equal(1) |
126 | expect(res.body.data).to.be.an('array') | 126 | expect(res.body.data).to.be.an('array') |
127 | expect(res.body.data).to.have.lengthOf(1) | 127 | expect(res.body.data).to.have.lengthOf(1) |
128 | expect(res.body.data[0].name).to.equal('Default root channel') | 128 | expect(res.body.data[0].displayName).to.equal('Default root channel') |
129 | }) | 129 | }) |
130 | 130 | ||
131 | after(async function () { | 131 | after(async function () { |