shortcode/spec/shortcodes_spec.cr

12 lines
227 B
Crystal
Raw Normal View History

2023-07-14 13:03:51 +00:00
require "./spec_helper"
2023-07-14 14:51:03 +00:00
describe "Shortcodes" do
2023-07-14 13:03:51 +00:00
# TODO: Write tests
it "works" do
2023-07-14 14:51:03 +00:00
result = Shortcodes.parse("foo{{% bar %}}baz{{% /bar %}}qux");
p! result.sccount;
p! result.shortcodes[0].matching;
2023-07-14 13:03:51 +00:00
end
end