Commit 67b93518 by Torkel Ödegaard

Fixed failing unit test

parent 0dfd09ed
......@@ -34,8 +34,8 @@ func TestAccountDataAccess(t *testing.T) {
Convey("Can add collaborator", func() {
cmd := m.AddCollaboratorCommand{
AccountId: ac2.Id,
ForAccountId: ac1.Id,
AccountId: ac1.Id,
CollaboratorId: ac2.Id,
Role: m.ROLE_READ_WRITE,
}
......@@ -49,7 +49,7 @@ func TestAccountDataAccess(t *testing.T) {
err = GetAccountInfo(&query)
So(err, ShouldBeNil)
So(query.Result.Collaborators[0].AccountId, ShouldEqual, ac2.Id)
So(query.Result.Collaborators[0].CollaboratorId, ShouldEqual, ac2.Id)
So(query.Result.Collaborators[0].Role, ShouldEqual, m.ROLE_READ_WRITE)
So(query.Result.Collaborators[0].Email, ShouldEqual, "ac2@test.com")
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment