schnutibox/pkg/prepare/prepare_test.go

19 lines
368 B
Go
Raw Normal View History

package prepare_test
import (
"testing"
"github.com/stretchr/testify/assert"
"go.xsfx.dev/schnutibox/pkg/prepare"
)
func TestBoxService(t *testing.T) {
t.Parallel()
assert := assert.New(t)
tmpDir := t.TempDir()
serviceFile := tmpDir + "schnutibox.service"
err := prepare.BoxService(serviceFile, false)
assert.NoError(err)
assert.FileExists(serviceFile)
}