})
expect(total).to.equal(3)
+ expect(data).to.have.lengthOf(3)
+
expect(data[0].following.host).to.equal(servers[2].host)
expect(data[0].following.name).to.equal('user3_channel')
expect(data[0].follower.host).to.equal(servers[0].host)
})
expect(total).to.equal(3)
+ expect(data).to.have.lengthOf(1)
+
expect(data[0].following.host).to.equal(servers[2].host)
expect(data[0].following.name).to.equal('user3_channel2')
expect(data[0].follower.host).to.equal(servers[2].host)
})
expect(total).to.equal(3)
+ expect(data).to.have.lengthOf(1)
+
expect(data[0].following.host).to.equal(servers[2].host)
expect(data[0].following.name).to.equal('user3_channel')
expect(data[0].follower.host).to.equal(servers[2].host)
})
expect(total).to.equal(1)
+ expect(data).to.have.lengthOf(1)
+
expect(data[0].following.host).to.equal(servers[2].host)
expect(data[0].following.name).to.equal('user3_channel')
expect(data[0].follower.host).to.equal(servers[0].host)
})
expect(total).to.equal(2)
+ expect(data).to.have.lengthOf(2)
+
expect(data[0].following.host).to.equal(servers[2].host)
expect(data[0].following.name).to.equal('user3_channel')
expect(data[0].follower.host).to.equal(servers[0].host)
})
expect(total).to.equal(2)
+ expect(data).to.have.lengthOf(1)
+
expect(data[0].following.host).to.equal(servers[2].host)
expect(data[0].following.name).to.equal('user3_channel')
expect(data[0].follower.host).to.equal(servers[2].host)
})
expect(total).to.equal(2)
+ expect(data).to.have.lengthOf(1)
+
expect(data[0].following.host).to.equal(servers[2].host)
expect(data[0].following.name).to.equal('user3_channel')
expect(data[0].follower.host).to.equal(servers[0].host)
- expect(data[0].follower.name).to.equal('root')
+ expect(data[0].follower.name).to.equal('user1')
}
{
})
expect(total).to.equal(1)
+ expect(data).to.have.lengthOf(1)
+
expect(data[0].following.host).to.equal(servers[2].host)
expect(data[0].following.name).to.equal('user3_channel')
expect(data[0].follower.host).to.equal(servers[0].host)