Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Thompson authored and Brian Thompson committed Apr 28, 2019
1 parent 8f8525d commit 5d9d7de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/mr_note.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func mrNoteMsg(msgs []string) (string, error) {

func mrNoteText() (string, error) {
const tmpl = `{{.InitMsg}}
{{.CommentChar}} Write a message for this note. Commented lines are discarded.`
{{.CommentChar}} Write a message for this note. Commented lines are discarded.`

initMsg := "\n"
commentChar := git.CommentChar()
Expand Down
4 changes: 2 additions & 2 deletions cmd/mr_note_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func Test_mrCreateNote(t *testing.T) {
repo := copyTestRepo(t)
cmd := exec.Command(labBinaryPath, "issue", "note", "lab-testing", "1",
cmd := exec.Command(labBinaryPath, "mr", "note", "lab-testing", "1",
"-m", "note text")
cmd.Dir = repo

Expand Down Expand Up @@ -61,6 +61,6 @@ func Test_mrNoteMsg(t *testing.T) {
}
require.Equal(t, `
# Write a message for this note. Commented lines are discarded.`, text)
# Write a message for this note. Commented lines are discarded.`, text)

}

0 comments on commit 5d9d7de

Please sign in to comment.