mirror of
https://github.com/TECHNOFAB11/jsonnet-bundler.git
synced 2025-12-12 08:00:05 +01:00
23 lines
322 B
Go
23 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)
|
||
|
|
}
|