Add tests for new files in create

reviewable/pr1461/r1
Vic Iglesias 8 years ago
parent 8d867657bb
commit cd34492b5a

@ -62,7 +62,15 @@ func TestCreate(t *testing.T) {
if fi, err := os.Stat(filepath.Join(dir, f)); err != nil { if fi, err := os.Stat(filepath.Join(dir, f)); err != nil {
t.Errorf("Expected %s file: %s", f, err) t.Errorf("Expected %s file: %s", f, err)
} else if fi.IsDir() { } 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)
} }
} }

Loading…
Cancel
Save