Skip to content

Commit

Permalink
Add test for hidden progress bar in MultiProgress (see console-rs#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
mibac138 authored and aj-bagwell committed May 20, 2021
1 parent c24f876 commit bdc2ec1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/progress_bar.rs
Expand Up @@ -956,4 +956,12 @@ mod tests {
_ => unreachable!(),
}
}

#[test]
fn multi_progress_hidden() {
let mpb = MultiProgress::with_draw_target(ProgressDrawTarget::hidden());
let pb = mpb.add(ProgressBar::new(123));
pb.finish();
mpb.join().unwrap();
}
}

0 comments on commit bdc2ec1

Please sign in to comment.