Skip to content

Commit c7ee610

Browse files
committed
Update XCTests also
1 parent 4de491d commit c7ee610

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

FlyingFox/XCTests/Handlers/HTTPHandlerTests.swift

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ final class HTTPHandlerTests: XCTestCase {
126126
)
127127
XCTAssertEqual(
128128
FileHTTPHandler.makeContentType(for: "fish.js"),
129-
"application/javascript"
129+
"text/javascript"
130130
)
131131
XCTAssertEqual(
132132
FileHTTPHandler.makeContentType(for: "fish.javascript"),
133-
"application/javascript"
133+
"text/javascript"
134134
)
135135
XCTAssertEqual(
136136
FileHTTPHandler.makeContentType(for: "fish.png"),
@@ -154,7 +154,7 @@ final class HTTPHandlerTests: XCTestCase {
154154
)
155155
XCTAssertEqual(
156156
FileHTTPHandler.makeContentType(for: "fish.ico"),
157-
"image/x-icon"
157+
"image/vnd.microsoft.icon"
158158
)
159159
XCTAssertEqual(
160160
FileHTTPHandler.makeContentType(for: "fish.wasm"),
@@ -168,6 +168,18 @@ final class HTTPHandlerTests: XCTestCase {
168168
FileHTTPHandler.makeContentType(for: "fish.jp2"),
169169
"image/jp2"
170170
)
171+
XCTAssertEqual(
172+
FileHTTPHandler.makeContentType(for: "fish.m4v"),
173+
"video/x-m4v"
174+
)
175+
XCTAssertEqual(
176+
FileHTTPHandler.makeContentType(for: "fish.properties"),
177+
"text/plain"
178+
)
179+
XCTAssertEqual(
180+
FileHTTPHandler.makeContentType(for: "fish.xml"),
181+
"application/xml"
182+
)
171183
XCTAssertEqual(
172184
FileHTTPHandler.makeContentType(for: "fish.somefile"),
173185
"application/octet-stream"

0 commit comments

Comments
 (0)