chore: update file change listener to use the session handler instead of the project file change handler

This commit is contained in:
Kiril Videlov 2023-11-16 14:37:04 +01:00 committed by Kiril Videlov
parent 606fbf8384
commit 9a4f5cb3ab

View File

@ -176,7 +176,7 @@ mod test {
fn create_new_session_via_new_file(project: &projects::Project, suite: &Suite) {
fs::write(project.path.join("test.txt"), "test").unwrap();
let file_change_listener = handlers::project_file_change::Handler::new();
let file_change_listener = handlers::session_handler::Handler::from(&suite.local_app_data);
file_change_listener
.handle("test.txt", &project.id)
.unwrap();