This commit is contained in:
2023-07-14 12:08:11 -03:00
parent df2c0c147a
commit 817eea895a
4 changed files with 48 additions and 12 deletions

View File

@ -4,9 +4,9 @@ describe "Shortcodes" do
# TODO: Write tests
it "works" do
result = Shortcodes.parse("foo{{% bar %}}baz{{% /bar %}}qux");
p! result.sccount;
p! result.shortcodes[0].matching;
result = Shortcodes.parse("foo{{% bar %}}baz{{% /bar %}}qux")
result.sccount.should eq 1
result.shortcodes[0].matching.should eq 1
end
end
@ -237,4 +237,4 @@ end
# // result = parse(input);
# // // No shortcodes
# // assert_that(result.sc[0].name.len, is_equal_to(0));
# // }
# // }