+ it('Should return the existing subscriptions', async function () {
+ const uris = [
+ 'user3_channel@localhost:9003',
+ 'root2_channel@localhost:9001',
+ 'root_channel@localhost:9001',
+ 'user3_channel@localhost:9001'
+ ]
+
+ const res = await areSubscriptionsExist(servers[ 0 ].url, users[ 0 ].accessToken, uris)
+ const body = res.body
+
+ expect(body['user3_channel@localhost:9003']).to.be.true
+ expect(body['root2_channel@localhost:9001']).to.be.false
+ expect(body['root_channel@localhost:9001']).to.be.true
+ expect(body['user3_channel@localhost:9001']).to.be.false
+ })
+