Skip to content

Commit 05fff29

Browse files
committed
User unit test added
1 parent cfebd80 commit 05fff29

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/user/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ export function User (http, data) {
109109
}
110110

111111
export function UserCollection (http, data) {
112-
const obj = cloneDeep(data.collaborators || data.shares || {})
112+
const users = data.collaborators || data.shares || []
113+
const obj = cloneDeep(users)
113114
const userCollection = obj.map((userdata) => {
114115
return new User(http, { user: userdata })
115116
})

0 commit comments

Comments
 (0)