Convert some project tests to use FakeFs
Also, tweak some FakeFs methods to make them slightly more convenient.
This commit is contained in:
parent
4b0b97f773
commit
6d8db5f6bb
8 changed files with 89 additions and 116 deletions
|
@ -7760,8 +7760,8 @@ mod tests {
|
|||
"
|
||||
.unindent();
|
||||
|
||||
let fs = Arc::new(FakeFs::new(cx.background().clone()));
|
||||
fs.insert_file("/file", text).await.unwrap();
|
||||
let fs = FakeFs::new(cx.background().clone());
|
||||
fs.insert_file("/file", text).await;
|
||||
|
||||
let project = Project::test(fs, &mut cx);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue