Skip to content

Commit

Permalink
Remove outdated test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dekkonot committed Oct 31, 2023
1 parent 0c62a6e commit e6f7314
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 51 deletions.
27 changes: 0 additions & 27 deletions src/snapshot_middleware/lua.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,31 +496,4 @@ mod test {
insta::assert_yaml_snapshot!(instance_snapshot);
});
}

#[ignore = "name trimming is no longer handled by individual snapshots"]
#[test]
fn double_name_trim() {
// Due to the existence of transformers, the way file extensions
// get trimmed is different now. A regression of this nature is
// possible, so we test against double-trimming.
let mut imfs = InMemoryFs::new();
imfs.load_snapshot("/.server.server.lua", VfsSnapshot::file("Hello there!"))
.unwrap();

let mut vfs = Vfs::new(imfs);

let instance_snapshot = snapshot_lua(
&InstanceContext::with_emit_legacy_scripts(Some(true)),
&mut vfs,
Path::new("/.server.server.lua"),
"",
ScriptType::Server,
)
.unwrap()
.unwrap();

insta::with_settings!({ sort_maps => true }, {
insta::assert_yaml_snapshot!(instance_snapshot);
});
}
}

This file was deleted.

0 comments on commit e6f7314

Please sign in to comment.