summaryrefslogtreecommitdiff
path: root/Tests/LibMarkdown/TestCommonmark.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-12-21 11:42:06 +0000
committerTim Flynn <trflynn89@pm.me>2023-01-17 19:52:52 -0500
commit1dd6b7f5b787e1893b708ddf58492f9fdd50ae51 (patch)
tree3f9f665b573fa3097b707b1cc8cb08e1572b34cd /Tests/LibMarkdown/TestCommonmark.cpp
parentefe4329f9fe448eb17784d7a9b9e6e519ec4fa57 (diff)
downloadserenity-1dd6b7f5b787e1893b708ddf58492f9fdd50ae51.zip
AK+Everywhere: Rename JsonObject::get() to ::get_deprecated()
This is a preparatory step to making `get()` return `ErrorOr`.
Diffstat (limited to 'Tests/LibMarkdown/TestCommonmark.cpp')
-rw-r--r--Tests/LibMarkdown/TestCommonmark.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Tests/LibMarkdown/TestCommonmark.cpp b/Tests/LibMarkdown/TestCommonmark.cpp
index 5d85c61023..713e967856 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("section"sv),
- testcase.get("example"sv),
- testcase.get("start_line"sv),
- testcase.get("end_line"sv));
+ testcase.get_deprecated("section"sv),
+ testcase.get_deprecated("example"sv),
+ testcase.get_deprecated("start_line"sv),
+ testcase.get_deprecated("end_line"sv));
- DeprecatedString markdown = testcase.get("markdown"sv).as_string();
- DeprecatedString html = testcase.get("html"sv).as_string();
+ DeprecatedString markdown = testcase.get_deprecated("markdown"sv).as_string();
+ DeprecatedString html = testcase.get_deprecated("html"sv).as_string();
Test::TestSuite::the().add_case(adopt_ref(*new Test::TestCase(
name, [markdown, html]() {