mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-12 16:10:04 +01:00
22 lines
322 B
Go
22 lines
322 B
Go
// +build integration
|
|
|
|
package main
|
|
|
|
import (
|
|
"io/ioutil"
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestInitCommand(t *testing.T) {
|
|
tempDir, err := ioutil.TempDir("", "jb-init")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
defer os.Remove(tempDir)
|
|
|
|
code := initCommand(tempDir)
|
|
assert.Equal(t, 0, code)
|
|
}
|