(user)
| 133 | |
| 134 | const roleObjs = {}; |
| 135 | const createAllRoles = function (user) { |
| 136 | const promises = allRoles.map(function (roleName) { |
| 137 | return createRole(roleName, null, user).then(function (roleObj) { |
| 138 | roleObjs[roleName] = roleObj; |
| 139 | return roleObj; |
| 140 | }); |
| 141 | }); |
| 142 | return Promise.all(promises); |
| 143 | }; |
| 144 | |
| 145 | const restExecute = spyOn(RestQuery._UnsafeRestQuery.prototype, 'execute').and.callThrough(); |
| 146 |
no test coverage detected