Skip to content

Commit 5682b9e

Browse files
committed
Fix test
1 parent c2491bd commit 5682b9e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/06-serving-static-assets/test/app_test.gleam

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import app
22
import app/router
33
import app/web.{type Context, Context}
4+
import gleam/list
45
import gleeunit
56
import gleeunit/should
67
import wisp/testing
@@ -38,7 +39,8 @@ pub fn get_stylesheet_test() {
3839
|> should.equal(200)
3940

4041
response.headers
41-
|> should.equal([#("content-type", "text/css; charset=utf-8")])
42+
|> list.key_find("content-type")
43+
|> should.equal(Ok("text/css; charset=utf-8"))
4244
}
4345

4446
pub fn get_javascript_test() {
@@ -50,5 +52,6 @@ pub fn get_javascript_test() {
5052
|> should.equal(200)
5153

5254
response.headers
53-
|> should.equal([#("content-type", "text/javascript; charset=utf-8")])
55+
|> list.key_find("content-type")
56+
|> should.equal(Ok("text/javascript; charset=utf-8"))
5457
}

0 commit comments

Comments
 (0)