Merge pull request #181 from tvincent2/add-changekind-sass-test

Add the detection of ChangeKind::Sass to tests
This commit is contained in:
Vincent Prouillet 2017-11-24 17:45:31 +01:00 committed by GitHub
commit d43e32dfcc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -296,6 +296,10 @@ mod tests {
(ChangeKind::Content, "/content/posts/hello.md".to_string()), (ChangeKind::Content, "/content/posts/hello.md".to_string()),
"/home/vincent/site", Path::new("/home/vincent/site/content/posts/hello.md") "/home/vincent/site", Path::new("/home/vincent/site/content/posts/hello.md")
), ),
(
(ChangeKind::Sass, "/sass/print.scss".to_string()),
"/home/vincent/site", Path::new("/home/vincent/site/sass/print.scss")
)
]; ];
for (expected, pwd, path) in test_cases { for (expected, pwd, path) in test_cases {