Skip to content

Commit

Permalink
✅ Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
phatblat committed Feb 4, 2022
1 parent 2433304 commit c146c0c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Tests/WebViewTests/WebViewTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@
import XCTest

final class WebViewTests: XCTestCase {
func testExample() {
func testWebViewExists() {
XCTAssertNotNil(WebView().webView)
}

func testWebViewLoading() {
let url = URL(string: "about:blank")!
let request = URLRequest(url: url)
let navigation = WebView().webView.load(request)

XCTAssertNotNil(navigation)
XCTAssertEqual(navigation!.effectiveContentMode, .recommended)
}
}

0 comments on commit c146c0c

Please sign in to comment.