diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-12-21 14:42:45 +0000 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-01-26 09:57:14 -0500 |
commit | d55f763fcd22ff3daf4c22417d1554c5b3faf074 (patch) | |
tree | 2dfb84bd4b5cade2379e9fbd1312835ee98f80e7 /Tests/LibMarkdown/TestCommonmark.cpp | |
parent | ad9b2043dd82badb6a8730a20710c4042fa4dfd5 (diff) | |
download | serenity-d55f763fcd22ff3daf4c22417d1554c5b3faf074.zip |
Tests: Replace uses of JsonObject::get_deprecated()/get_ptr()
Diffstat (limited to 'Tests/LibMarkdown/TestCommonmark.cpp')
-rw-r--r-- | Tests/LibMarkdown/TestCommonmark.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Tests/LibMarkdown/TestCommonmark.cpp b/Tests/LibMarkdown/TestCommonmark.cpp index 713e967856..a9ef515404 100644 --- a/Tests/LibMarkdown/TestCommonmark.cpp +++ b/Tests/LibMarkdown/TestCommonmark.cpp @@ -30,13 +30,13 @@ TEST_SETUP auto testcase = tests[i].as_object(); auto name = DeprecatedString::formatted("{}_ex{}_{}..{}", - testcase.get_deprecated("section"sv), - testcase.get_deprecated("example"sv), - testcase.get_deprecated("start_line"sv), - testcase.get_deprecated("end_line"sv)); + testcase.get("section"sv).value(), + testcase.get("example"sv).value(), + testcase.get("start_line"sv).value(), + testcase.get("end_line"sv).value()); - DeprecatedString markdown = testcase.get_deprecated("markdown"sv).as_string(); - DeprecatedString html = testcase.get_deprecated("html"sv).as_string(); + DeprecatedString markdown = testcase.get_deprecated_string("markdown"sv).value(); + DeprecatedString html = testcase.get_deprecated_string("html"sv).value(); Test::TestSuite::the().add_case(adopt_ref(*new Test::TestCase( name, [markdown, html]() { |