Add serve snapshot test for empty project

This commit is contained in:
Lucien Greathouse
2019-09-03 17:56:23 -07:00
parent d5c816f24d
commit ea765eb929
10 changed files with 176 additions and 213 deletions

View File

@@ -1,6 +1,6 @@
use std::{fs, process::Command};
use insta::assert_snapshot_matches;
use insta::assert_snapshot;
use tempfile::tempdir;
use crate::util::{get_build_tests_path, get_rojo_path, get_working_dir_path};
@@ -78,5 +78,5 @@ fn run_build_test(test_name: &str) {
let contents = fs::read_to_string(&output_path).expect("Couldn't read output file");
assert_snapshot_matches!(test_name, contents);
assert_snapshot!(test_name, contents);
}