Skip to content

Commit

Permalink
added missing test coverage
Browse files Browse the repository at this point in the history
Signed-off-by: John Murphy <johnmurphy@salesforce.com>
  • Loading branch information
John Murphy committed May 28, 2019
1 parent 6bcc8ef commit f42a537
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/logging/logging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,13 @@ func TestPackCLILogger(t *testing.T) {
}
})

it("will convert an empty string to a line feed", func() {
logger.Info("")
expected := "\n"
if log.String() != expected {
t.Fatal("expected empty string to log an unpadded line feed")
}
})

})
}

0 comments on commit f42a537

Please sign in to comment.