Skip to content

Commit

Permalink
Add test for #60
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Jul 12, 2016
1 parent 98e5b49 commit 34ab821
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/Flatten.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ describe 'Flatten', ->
path: 'foo/bar.html'
items: [
id: 'http://html5doctor.com/the-article-element/'
html: "<article><h1>Apple</h1><p>The <b>apple</b> is the pomaceous fruit of the apple tree...</p></article><article><h1>Red Delicious</h1><img src=\"http://www.theproducemom.com/wp-content/uploads/2012/01/red_delicious_jpg.jpg\"><p>These bright red apples are the most common found in many supermarkets...</p></article>"
html: "<article><h1>Apple</h1><p>The <b>apple</b> is the pomaceous fruit of the apple tree...</p></article><article><h1>Red Delicious</h1><img src=\"http://www.theproducemom.com/wp-content/uploads/2012/01/red_delicious_jpg.jpg\"><p>These bright red apples are the most common found in many supermarkets...</p></article><article><img src=\"https://s3-us-west-2.amazonaws.com/the-grid-img/p/904a32ea9f56b9e7bf1b500e5e2e2217a090b225.jpg\"></article>"
]

expected =
Expand All @@ -699,6 +699,10 @@ describe 'Flatten', ->
title: 'Red Delicious'
caption: 'These bright red apples are the most common found in many supermarkets...'
src: 'http://www.theproducemom.com/wp-content/uploads/2012/01/red_delicious_jpg.jpg'
,
type: 'image'
html: "<img src=\"https://s3-us-west-2.amazonaws.com/the-grid-img/p/904a32ea9f56b9e7bf1b500e5e2e2217a090b225.jpg\">"
src: 'https://s3-us-west-2.amazonaws.com/the-grid-img/p/904a32ea9f56b9e7bf1b500e5e2e2217a090b225.jpg'
]
]

Expand Down

0 comments on commit 34ab821

Please sign in to comment.