Add a smoke test for inline display

pull/502/head
Wilfred Hughes 2023-03-16 00:16:58 +07:00
parent fdc6db4c22
commit e762f77a0b
1 changed files with 10 additions and 0 deletions

@ -10,6 +10,16 @@ fn no_such_files() {
cmd.assert().failure().code(2);
}
#[test]
fn inline() {
let mut cmd = Command::cargo_bin("difft").unwrap();
cmd.arg("--display=inline")
.arg("sample_files/simple_before.js")
.arg("sample_files/simple_after.js");
cmd.assert().success();
}
#[test]
fn has_changes_default_exit_code() {
let mut cmd = Command::cargo_bin("difft").unwrap();