pub fn assert_eq_path(expected_path: impl AsRef<Path>, actual: impl Into<Data>)
Expand description

Check if a value matches the content of a file

When the content is text, newlines are normalized.

let output = "something";
let expected_path = "tests/snapshots/output.txt";
snapbox::assert_eq_path(expected_path, output);