Skip to content

Commit

Permalink
simplify code
Browse files Browse the repository at this point in the history
Signed-off-by: Xavier Coulon <[email protected]>
  • Loading branch information
xcoulon committed Feb 13, 2018
1 parent 34ee1d7 commit 898ef78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions parser/image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ var _ = Describe("Images", func() {
&types.StringElement{Content: "a paragraph"},
},
},
&types.InlineContent{
{
Elements: []types.InlineElement{
&types.StringElement{Content: "image::images/foo.png[]"},
},
Expand All @@ -139,7 +139,7 @@ var _ = Describe("Images", func() {
Elements: []types.DocElement{
&types.Paragraph{
Lines: []*types.InlineContent{
&types.InlineContent{
{
Elements: []types.InlineElement{
&types.StringElement{Content: "a foo image::foo.png[foo image, 600, 400] bar"},
},
Expand Down Expand Up @@ -232,12 +232,12 @@ var _ = Describe("Images", func() {
actualContent := "a paragraph\nimage::images/foo.png[]"
expectedDocument := &types.Paragraph{
Lines: []*types.InlineContent{
&types.InlineContent{
{
Elements: []types.InlineElement{
&types.StringElement{Content: "a paragraph"},
},
},
&types.InlineContent{
{
Elements: []types.InlineElement{
&types.StringElement{Content: "image::images/foo.png[]"},
},
Expand Down

0 comments on commit 898ef78

Please sign in to comment.