tests/testthat/test-create_folder.R

context("test-create_folder")

name1 <- basename(tempfile())
path1 <- (tempfile())

electricShine::create_folder(path1)

test_that(" Folder exisitng chek ", {
 expect_true(file.exists(path1) )
 expect_error(electricShine::create_folder(path1, "t"))
})
chasemc/electricShine documentation built on Oct. 12, 2022, 8:50 a.m.