Skip to main content

assert_contains

Function assert_contains 

Source
pub fn assert_contains(text: &str, substring: &str)
Expand description

Assert that response body contains text

ยงExamples

use reinhardt_testkit::assertions::assert_contains;

let text = "Hello, World!";
assert_contains(text, "World");