Skip to content

Commit

Permalink
fixing content type
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcorbyeaglen committed Jan 24, 2018
1 parent 79c73e8 commit 5b47004
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func TestTestOutputGenerator_GenerateConcurrently(testing *testing.T) {
}

func TestTestOutputGenerator_FileExtension(t *testing.T) {
AssertThat(t, underTest.ContentType(), is.EqualTo("text/json"))
AssertThat(t, underTest.ContentType(), is.EqualTo("application/json"))
}

func TestTestOutputGenerator_Panics(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion jsongenerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func NewTestOutputGenerator() *TestOutputGenerator {

// FileExtension for the output generated.
func (outputGenerator *TestOutputGenerator) ContentType() string {
return "text/json"
return "application/json"
}

// Generate generates json output for a test. The return string contains the html
Expand Down

0 comments on commit 5b47004

Please sign in to comment.