delta-gitu 0.1.3

An experimental fork of gitu (a git client inspired by Magit), published as a library for delta to embed
Documentation
use super::*;

#[test]
pub(crate) fn quit() {
    let app = snapshot!(setup_clone!(), "q");
    assert!(app.state.quit);
}

#[test]
pub(crate) fn quit_from_menu() {
    let app = snapshot!(setup_clone!(), "hq");
    assert!(!app.state.quit);
}

#[test]
pub(crate) fn confirm_quit_prompt() {
    let mut ctx = setup_clone!();
    ctx.config().general.confirm_quit.enabled = true;

    let app = snapshot!(ctx, "q");
    assert!(!app.state.quit);
}

#[test]
pub(crate) fn confirm_quit() {
    let mut ctx = setup_clone!();
    ctx.config().general.confirm_quit.enabled = true;

    let app = snapshot!(ctx, "qy");
    assert!(app.state.quit);
}