Fix tests checking the data value
This commit is contained in:
parent
073a63b93e
commit
8452844c26
@ -535,7 +535,8 @@ fn check_with_config(config: DiagnosticsMapConfig, diagnostics_json: &str, expec
|
||||
Config::new(workspace_root.to_path_buf(), ClientCapabilities::default()),
|
||||
);
|
||||
let snap = state.snapshot();
|
||||
let actual = map_rust_diagnostic_to_lsp(&config, &diagnostic, workspace_root, &snap);
|
||||
let mut actual = map_rust_diagnostic_to_lsp(&config, &diagnostic, workspace_root, &snap);
|
||||
actual.iter_mut().for_each(|diag| diag.diagnostic.data = None);
|
||||
expect.assert_debug_eq(&actual)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user