mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 04:05:50 -07:00
@@ -163,4 +163,15 @@ public class YamlConfigurationTest extends FileConfigurationTest {
|
||||
String result = config.saveToString();
|
||||
assertEquals(data, result);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testOnlyHeader() {
|
||||
YamlConfiguration config = getConfig();
|
||||
config.options().header("# Test");
|
||||
|
||||
String result = config.saveToString();
|
||||
String expected = "# # Test\n\n{}\n";
|
||||
|
||||
assertEquals(expected, result);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user