Skip to content

Commit

Permalink
fix unused enum in test
Browse files Browse the repository at this point in the history
  • Loading branch information
khalyomede committed Jan 8, 2025
1 parent 6cf87d0 commit c11057f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions http/HeaderType_test.v
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import http { HeaderType }
import http
import test { expect }

fn test_it_renders_header_type_accept_to_string() {
expect(HeaderType.accept.to_string()).to_be_equal_to("Accept")
expect(http.HeaderType.accept.to_string()).to_be_equal_to("Accept")
}

fn test_it_renders_header_type_content_type_to_string() {
expect(HeaderType.content_type.to_string()).to_be_equal_to("Content-Type")
expect(http.HeaderType.content_type.to_string()).to_be_equal_to("Content-Type")
}

fn test_it_renders_header_type_location_to_string() {
expect(HeaderType.location.to_string()).to_be_equal_to("Location")
expect(http.HeaderType.location.to_string()).to_be_equal_to("Location")
}
6 changes: 3 additions & 3 deletions http/Mime_test.v
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import http { Mime }
import http
import test { expect }

fn test_it_can_render_mime_application_json_to_string() {
expect(Mime.application_json.to_string()).to_be_equal_to("application/json")
expect(http.Mime.application_json.to_string()).to_be_equal_to("application/json")
}

fn test_it_can_render_mime_text_html_to_string() {
expect(Mime.text_html.to_string()).to_be_equal_to("text/html")
expect(http.Mime.text_html.to_string()).to_be_equal_to("text/html")
}

0 comments on commit c11057f

Please sign in to comment.