Skip to content

Commit b40e4de

Browse files
ndjson: remove duplicate testcase
1 parent b9d4202 commit b40e4de

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

mimetype_test.go

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,13 +233,18 @@ a,"b`,
233233
none,
234234
},
235235
{
236-
// Empty lines should not be counted as ndjson.
237-
"json with before&after lines",
236+
"empty lines should not be counted for ndjson",
238237
`
239238
{"key":"val"}
240-
{"key":"val"}
241239
`,
242-
"application/x-ndjson",
240+
"application/json",
241+
none,
242+
},
243+
{
244+
"a json spread on multiple lines is not ndjson",
245+
`{"key"
246+
:"val"}`,
247+
"application/json",
243248
none,
244249
},
245250
{"nes", "NES\x1a", "application/vnd.nintendo.snes.rom", one},

0 commit comments

Comments
 (0)