Function
signUpAll
(list, optionsOrCallback)
Source from the content-addressed store, hash-verified
| 905 | }); |
| 906 | |
| 907 | function signUpAll(list, optionsOrCallback) { |
| 908 | let promise = Promise.resolve(); |
| 909 | list.forEach(user => { |
| 910 | promise = promise.then(function () { |
| 911 | return user.signUp(); |
| 912 | }); |
| 913 | }); |
| 914 | promise = promise.then(function () { |
| 915 | return list; |
| 916 | }); |
| 917 | return promise.then(optionsOrCallback); |
| 918 | } |
| 919 | |
| 920 | it('contained in user array queries', async done => { |
| 921 | const USERS = 4; |
Tested by
no test coverage detected