diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-08 11:15:06 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-08 11:15:06 +0200 |
commit | b0268e27e1584d7afcaa3411df454c68130787be (patch) | |
tree | 44625690fa6f254795f25ead90228f1ff9bf3354 /server/tests/api/search/search-channels.ts | |
parent | 655c957cc3004c4b4841538486f009511573cdf2 (diff) | |
download | PeerTube-b0268e27e1584d7afcaa3411df454c68130787be.tar.gz PeerTube-b0268e27e1584d7afcaa3411df454c68130787be.tar.zst PeerTube-b0268e27e1584d7afcaa3411df454c68130787be.zip |
Fix channel search with complete handle
Diffstat (limited to 'server/tests/api/search/search-channels.ts')
-rw-r--r-- | server/tests/api/search/search-channels.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/tests/api/search/search-channels.ts b/server/tests/api/search/search-channels.ts index 8a01aff90..67612537c 100644 --- a/server/tests/api/search/search-channels.ts +++ b/server/tests/api/search/search-channels.ts | |||
@@ -129,6 +129,13 @@ describe('Test channels search', function () { | |||
129 | } | 129 | } |
130 | 130 | ||
131 | { | 131 | { |
132 | const body = await command.advancedChannelSearch({ search: { handles: [ 'squall_channel@' + server.host ] } }) | ||
133 | expect(body.total).to.equal(1) | ||
134 | expect(body.data).to.have.lengthOf(1) | ||
135 | expect(body.data[0].displayName).to.equal('Squall channel') | ||
136 | } | ||
137 | |||
138 | { | ||
132 | const body = await command.advancedChannelSearch({ search: { handles: [ 'chocobozzz_channel' ] } }) | 139 | const body = await command.advancedChannelSearch({ search: { handles: [ 'chocobozzz_channel' ] } }) |
133 | expect(body.total).to.equal(0) | 140 | expect(body.total).to.equal(0) |
134 | expect(body.data).to.have.lengthOf(0) | 141 | expect(body.data).to.have.lengthOf(0) |