Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasLYang committed Feb 7, 2025
1 parent 1e610f4 commit fa065aa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/turborepo-lib/src/turbo_json/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ mod tests {
assert_eq!(actual, expected);
}

#[test_case(r#"{ "tags": [] }"#, "empty tags")]
#[test_case(r#"{ "tags": [] }"#, "empty")]
#[test_case(r#"{ "tags": ["my-tag"] }"#, "one tag")]
#[test_case(r#"{ "tags": ["my-tag", "my-other-tag"] }"#, "two tags")]
fn test_tags(json: &str, name: &str) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
source: crates/turborepo-lib/src/turbo_json/mod.rs
expression: raw_task_definition
expression: json.tags
---
{
"tags": null
}
[]
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
source: crates/turborepo-lib/src/turbo_json/mod.rs
expression: json.tags
expression: raw_task_definition
---
[]
{
"tags": {}
}

0 comments on commit fa065aa

Please sign in to comment.