-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #355 from pragdave/i353-oneline-tags-broken
Refs: #353; Setting up tests WIP [skip-ci]
- Loading branch information
Showing
6 changed files
with
78 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
defmodule Acceptance.Ast.Html.OnelineTest do | ||
use ExUnit.Case, async: true | ||
import Support.Helpers, only: [as_ast: 1] | ||
import Support.AstHelpers, only: [verb_tag: 2, verb_tag: 3] | ||
|
||
describe "oneline tags" do | ||
test "really simple" do | ||
markdown = "<h1>Headline</h1>" | ||
ast = [verb_tag("h1", "Headline")] | ||
messages = [] | ||
|
||
assert as_ast(markdown) == {:ok, ast, messages} | ||
end | ||
|
||
test "a little bit more complicated" do | ||
markdown = ~s{<p align="center"><img src="image.svg"/></p>} | ||
ast = [verb_tag("p", ["<img src=\"image.svg\"/>"], align: "center")] | ||
messages = [] | ||
|
||
assert as_ast(markdown) == {:ok, ast, messages} | ||
end | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters