File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
examples/06-serving-static-assets/test Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11import app
22import app/router
33import app/web . { type Context , Context }
4+ import gleam/list
45import gleeunit
56import gleeunit/should
67import 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
4446pub 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}
You can’t perform that action at this time.
0 commit comments