+ {
+ const json = await getJSONfeed(servers[0].url, 'videos', { accountId: rootAccountId })
+ const jsonObj = JSON.parse(json.text)
+ expect(jsonObj.items.length).to.be.equal(1)
+ expect(jsonObj.items[ 0 ].title).to.equal('my super name for server 1')
+ expect(jsonObj.items[ 0 ].author.name).to.equal('root')
+ }
+
+ {
+ const json = await getJSONfeed(servers[0].url, 'videos', { accountId: userAccountId })
+ const jsonObj = JSON.parse(json.text)
+ expect(jsonObj.items.length).to.be.equal(1)
+ expect(jsonObj.items[ 0 ].title).to.equal('user video')
+ expect(jsonObj.items[ 0 ].author.name).to.equal('john')
+ }
+