File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,10 @@ exports.Team = class {
6565
6666 async regroup ( options ) {
6767
68- await this . work ;
68+ try {
69+ await this . work ;
70+ }
71+ catch { }
6972
7073 this . _init ( options ) ;
7174 }
Original file line number Diff line number Diff line change @@ -197,6 +197,17 @@ describe('Team', () => {
197197 await expect ( team . work ) . to . reject ( ) ;
198198 expect ( Teamwork . Team . _notes ( team ) ) . to . be . null ( ) ;
199199 } ) ;
200+
201+ it ( 'regroup works after team error' , async ( ) => {
202+
203+ const team = new Teamwork . Team ( { meetings : 2 , strict : true } ) ;
204+ team . attend ( new Error ( 'failed' ) ) ;
205+
206+ const regroup = team . regroup ( ) ;
207+
208+ await expect ( team . work ) . to . reject ( 'failed' ) ;
209+ await expect ( regroup ) . to . not . reject ( ) ;
210+ } ) ;
200211} ) ;
201212
202213describe ( 'Events' , ( ) => {
You can’t perform that action at this time.
0 commit comments