We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 166cf60 commit 154e9a3Copy full SHA for 154e9a3
1 file changed
test/lti_example_tool_test.gleam
@@ -1,3 +1,4 @@
1
+import gleam/bit_array
2
import gleam/http/response
3
import gleam/list
4
import gleam/result
@@ -64,11 +65,14 @@ pub fn get_home_page_test() {
64
65
let response = router.handle_request(request, ctx)
66
67
response.status
- |> should.equal(303)
68
+ |> should.equal(200)
69
- response.headers
70
- |> list.contains(#("location", "/registrations"))
71
- |> should.be_true
+ response
+ |> testing.bit_array_body()
72
+ |> bit_array.to_string()
73
+ |> result.map(string.contains(_, "LTI Example Tool"))
74
+ |> result.unwrap(False)
75
+ |> should.be_true()
76
77
response.headers
78
|> list.contains(#("made-with", "Gleam"))
0 commit comments