From a073c912700e1ecda70a463f334f316dc62db7a4 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Mon, 12 Apr 2021 11:43:29 +0200 Subject: modify tests to support current behaviour regarding plaintext description --- server/tests/client.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'server/tests') diff --git a/server/tests/client.ts b/server/tests/client.ts index d608764ee..3c99bcd1f 100644 --- a/server/tests/client.ts +++ b/server/tests/client.ts @@ -39,7 +39,8 @@ describe('Test a client controllers', function () { let account: Account const videoName = 'my super name for server 1' - const videoDescription = 'my super description for server 1' + const videoDescription = 'my
super __description__ for *server* 1

' + const videoDescriptionPlainText = 'my super description for server 1' const playlistName = 'super playlist name' const playlistDescription = 'super playlist description' @@ -169,7 +170,7 @@ describe('Test a client controllers', function () { .expect(HttpStatusCode.OK_200) expect(res.text).to.contain(``) - expect(res.text).to.contain(``) + expect(res.text).to.contain(``) expect(res.text).to.contain('') expect(res.text).to.contain(``) }) @@ -181,7 +182,7 @@ describe('Test a client controllers', function () { .expect(HttpStatusCode.OK_200) expect(res.text).to.contain(``) - expect(res.text).to.contain(``) + expect(res.text).to.contain(``) expect(res.text).to.contain('') expect(res.text).to.contain(``) }) @@ -210,7 +211,7 @@ describe('Test a client controllers', function () { expect(res.text).to.contain('') expect(res.text).to.contain('') expect(res.text).to.contain(``) - expect(res.text).to.contain(``) + expect(res.text).to.contain(``) }) it('Should have valid twitter card on the watch playlist page', async function () { -- cgit v1.2.3