Skip to content

Commit

Permalink
Strip ansi codes from lint/custom violations test (#2183)
Browse files Browse the repository at this point in the history
Removes ansi codes before testing output in command::output::tests::check_success_response_with_empty_lint_and_custom_violations_text
  • Loading branch information
dotdat authored Oct 1, 2024
1 parent 3e6c35d commit 589df2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/command/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,7 @@ mod tests {
use assert_json_diff::assert_json_eq;
use chrono::{DateTime, Local, Utc};

use console::strip_ansi_codes;
use rover_client::{
operations::{
graph::publish::{ChangeSummary, FieldChanges, TypeChanges},
Expand Down Expand Up @@ -1136,6 +1137,7 @@ mod tests {
.get_stdout()
.expect("Expected response to be Ok")
.expect("Expected response to exist");
let actual_text = strip_ansi_codes(&actual_text);

let expected_text = "
There were no changes detected in the composed API schema, but the core schema was modified.
Expand Down

0 comments on commit 589df2b

Please sign in to comment.