Skip to content

Commit

Permalink
refactor: use qualified form for insta glob macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Tar-Tarus authored and lpil committed Sep 20, 2024
1 parent 40a40d0 commit 39d2edc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions compiler-cli/src/new/tests.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use insta::glob;
use std::path::PathBuf;

use camino::Utf8PathBuf;
Expand Down Expand Up @@ -52,7 +51,7 @@ fn new_with_default_template() {
.unwrap();
creator.run().unwrap();

glob!(path, "my_project/*.*", |file_path| {
insta::glob!(path, "my_project/*.*", |file_path| {
if !file_path.is_dir() {
insta::assert_snapshot!(crate::fs::read(
Utf8PathBuf::from_path_buf(file_path.to_path_buf()).expect("Non Utf8 Path"),
Expand Down Expand Up @@ -80,7 +79,7 @@ fn new_with_javascript_template() {
.unwrap();
creator.run().unwrap();

glob!(path, "my_project/*.*", |file_path| {
insta::glob!(path, "my_project/*.*", |file_path| {
if !file_path.is_dir() {
insta::assert_snapshot!(crate::fs::read(
Utf8PathBuf::from_path_buf(file_path.to_path_buf()).expect("Non Utf8 Path"),
Expand Down

0 comments on commit 39d2edc

Please sign in to comment.