diff --git a/rojo-test/serve-test-snapshots/serve_test__remove_file_all-2.snap b/rojo-test/serve-test-snapshots/serve_test__remove_file_all-2.snap new file mode 100644 index 00000000..ce9ed750 --- /dev/null +++ b/rojo-test/serve-test-snapshots/serve_test__remove_file_all-2.snap @@ -0,0 +1,16 @@ +--- +source: rojo-test/src/serve_test.rs +expression: "read_response.intern_and_redact(&mut redactions, root_id)" +--- +instances: + id-2: + Children: [] + ClassName: Folder + Id: id-2 + Metadata: + ignoreUnknownInstances: false + Name: remove_file + Parent: ~ + Properties: {} +messageCursor: 1 +sessionId: id-1 diff --git a/rojo-test/serve-test-snapshots/serve_test__remove_file_all.snap b/rojo-test/serve-test-snapshots/serve_test__remove_file_all.snap new file mode 100644 index 00000000..e133c4ea --- /dev/null +++ b/rojo-test/serve-test-snapshots/serve_test__remove_file_all.snap @@ -0,0 +1,29 @@ +--- +source: rojo-test/src/serve_test.rs +expression: "read_response.intern_and_redact(&mut redactions, root_id)" +--- +instances: + id-2: + Children: + - id-3 + ClassName: Folder + Id: id-2 + Metadata: + ignoreUnknownInstances: false + Name: remove_file + Parent: ~ + Properties: {} + id-3: + Children: [] + ClassName: StringValue + Id: id-3 + Metadata: + ignoreUnknownInstances: false + Name: hello + Parent: id-2 + Properties: + Value: + Type: String + Value: This file will be removed! +messageCursor: 0 +sessionId: id-1 diff --git a/rojo-test/serve-test-snapshots/serve_test__remove_file_info.snap b/rojo-test/serve-test-snapshots/serve_test__remove_file_info.snap new file mode 100644 index 00000000..f826d7e7 --- /dev/null +++ b/rojo-test/serve-test-snapshots/serve_test__remove_file_info.snap @@ -0,0 +1,9 @@ +--- +source: rojo-test/src/serve_test.rs +expression: redactions.redacted_yaml(info) +--- +expectedPlaceIds: ~ +protocolVersion: 3 +rootInstanceId: id-2 +serverVersion: 0.6.0-dev +sessionId: id-1 diff --git a/rojo-test/serve-test-snapshots/serve_test__remove_file_subscribe.snap b/rojo-test/serve-test-snapshots/serve_test__remove_file_subscribe.snap new file mode 100644 index 00000000..e4f34a28 --- /dev/null +++ b/rojo-test/serve-test-snapshots/serve_test__remove_file_subscribe.snap @@ -0,0 +1,11 @@ +--- +source: rojo-test/src/serve_test.rs +expression: "subscribe_response.intern_and_redact(&mut redactions, ())" +--- +messageCursor: 1 +messages: + - added: {} + removed: + - id-3 + updated: [] +sessionId: id-1 diff --git a/rojo-test/src/serve_test.rs b/rojo-test/src/serve_test.rs index 390038c4..fd29fd62 100644 --- a/rojo-test/src/serve_test.rs +++ b/rojo-test/src/serve_test.rs @@ -102,7 +102,7 @@ fn add_folder() { } #[test] -#[ignore] // TODO: Removing files currently hangs ChangeProcessor +// #[ignore] // TODO: Removing files currently hangs ChangeProcessor fn remove_file() { run_serve_test("remove_file", |session, mut redactions| { let info = session.get_api_rojo().unwrap();