|
|
|
@ -62,7 +62,15 @@ func TestCreate(t *testing.T) {
|
|
|
|
|
if fi, err := os.Stat(filepath.Join(dir, f)); err != nil {
|
|
|
|
|
t.Errorf("Expected %s file: %s", f, err)
|
|
|
|
|
} else if fi.IsDir() {
|
|
|
|
|
t.Errorf("Expected %s to be a fle.", f)
|
|
|
|
|
t.Errorf("Expected %s to be a file.", f)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for _, f := range []string{NotesName, DeploymentName, ServiceName, HelpersName} {
|
|
|
|
|
if fi, err := os.Stat(filepath.Join(dir, TemplatesDir, f)); err != nil {
|
|
|
|
|
t.Errorf("Expected %s file: %s", f, err)
|
|
|
|
|
} else if fi.IsDir() {
|
|
|
|
|
t.Errorf("Expected %s to be a file.", f)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|