Skip to content

Commit b60b62f

Browse files
committed
Fixed failing test
1 parent 95ca071 commit b60b62f

File tree

1 file changed

+4
-29
lines changed

1 file changed

+4
-29
lines changed

test/test_interpreter.cpp

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -28,34 +28,9 @@ TEST_SUITE("execute_request")
2828
false
2929
);
3030

31-
std::string html_content = R"(<style>
32-
#pager-container {
33-
padding: 0;
34-
margin: 0;
35-
width: 100%;
36-
height: 100%;
37-
}
38-
.xcpp-iframe-pager {
39-
padding: 0;
40-
margin: 0;
41-
width: 100%;
42-
height: 100%;
43-
border: none;
44-
}
45-
</style>
46-
<iframe class="xcpp-iframe-pager" src=")"
47-
+ inspect_result + R"(?action=purge"></iframe>)";
48-
49-
nl::json expected_payload = nl::json::object(
50-
{{"data", {{"text/plain", inspect_result}, {"text/html", html_content}}},
51-
{"source", "page"},
52-
{"start", 0}}
53-
);
54-
55-
CHECK(result["payload"] == nl::json::array());
56-
CHECK(result["payload"][0] == expected_payload);
57-
CHECK(result["user_expressions"] == nl::json::object());
58-
CHECK(result["found"] == true);
59-
CHECK(result["status"] == "ok");
31+
REQUIRE(result["payload"][0]["data"]["text/plain"] == inspect_result);
32+
REQUIRE(result["user_expressions"] == nl::json::object());
33+
REQUIRE(result["found"] == true);
34+
REQUIRE(result["status"] == "ok");
6035
}
6136
}

0 commit comments

Comments
 (0)