Skip to content

Commit

Permalink
Simplify tests
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericenderman committed Nov 3, 2024
1 parent 6643ea1 commit 720b7a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class FileUtilityTest {
}

@Test fun sha1ZipWorks() {
val resourcePack = File(run.path, "TestPluginResourcePack.zip")
val resourcePack = File(run, "TestPluginResourcePack.zip")

Path("file/FileUtilityTest/TestPluginResourcePack.zip").saveResource(resourcePack.toPath())

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ResourceUtilityTest {
@Test fun savingResourceWorks() {
val saveLocation = File(run, "Test File.txt")
val resourcePath = Path("resource/ResourceUtilityTest/Test File.txt")
resourcePath.saveResource(saveLocation.toPath())
resourcePath.saveResource(saveLocation)

assertTrue(saveLocation.exists())
assertTrue(saveLocation.isFile)
Expand All @@ -41,7 +41,7 @@ class ResourceUtilityTest {
@Test fun savingResourcesWorks() {
val saveFolder = File(run, "Save Folder")
val resourcePath = Path.of("resource")
resourcePath.saveResources(saveFolder.toPath())
resourcePath.saveResources(saveFolder)

assertTrue(saveFolder.exists())
assertTrue(saveFolder.isDirectory)
Expand Down

0 comments on commit 720b7a2

Please sign in to comment.