typora-installer/common/decompression_test.go

24 lines
403 B
Go
Raw Permalink Normal View History

2021-12-06 11:03:15 +00:00
package common_test
import (
"testing"
"typorainstaller/common"
"typorainstaller/constants"
"github.com/stretchr/testify/assert"
)
func TestUnGzip(t *testing.T) {
assert := assert.New(t)
err := common.Untar("./test.tar.gz", "./")
assert.NoError(err)
}
func TestUnzip(t *testing.T) {
assert := assert.New(t)
err := common.Unzip("./themes.zip", constants.ConfigPath)
assert.NoError(err)
}