diff options
Diffstat (limited to 'support/texlab/crates/folding/src/tests.rs')
-rw-r--r-- | support/texlab/crates/folding/src/tests.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/support/texlab/crates/folding/src/tests.rs b/support/texlab/crates/folding/src/tests.rs index 405b56bda1..1e86b30088 100644 --- a/support/texlab/crates/folding/src/tests.rs +++ b/support/texlab/crates/folding/src/tests.rs @@ -2,8 +2,7 @@ use expect_test::{expect, Expect}; fn check(input: &str, expect: Expect) { let fixture = test_utils::fixture::Fixture::parse(input); - let workspace = &fixture.workspace; - let document = workspace.lookup(&fixture.documents[0].uri).unwrap(); + let document = fixture.make_params().unwrap().0.document; let data = crate::find_all(document); expect.assert_debug_eq(&data); } |