grim/convey
Clone
Summary
Browse
Changes
Graph
First stab and making sure the .config-XXXX directory is always cleaned up
redux
2021-10-15, Gary Kramlich
900f3af1f02e
First stab and making sure the .config-XXXX directory is always cleaned up
package
docker
import
(
"testing"
.
"github.com/onsi/gomega"
"keep.imfreedom.org/grim/convey/tasks"
)
func
TestImport
(
t
*
testing
.
T
)
{
g
:=
NewGomegaWithT
(
t
)
e
:=
&
Import
{
Files
:
[]
string
{
".:."
},
}
g
.
Expect
(
e
.
Valid
()).
To
(
BeNil
())
}
func
TestImportFilesRequired
(
t
*
testing
.
T
)
{
g
:=
NewGomegaWithT
(
t
)
e
:=
&
Import
{}
g
.
Expect
(
e
.
Valid
()).
To
(
MatchError
(
tasks
.
ErrNoFiles
))
}