Skip to content

Commit

Permalink
adds test for spacer no size
Browse files Browse the repository at this point in the history
  • Loading branch information
RafiBomb committed Jun 22, 2016
1 parent 9d7f95c commit 74cf2ca
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,22 @@ describe('Spacer', () => {
compare(input, expected);
});


it('creates a spacer with a default size or no size defined', () => {
var input = '<spacer></spacer>';
var expected = `
<table class="spacer">
<tbody>
<tr>
<td height="16px" style="font-size:16px;line-height:16px;">&#xA0;</td>
</tr>
</tbody>
</table>
`;

compare(input, expected);
});

it('creates a spacer element for small screens with correct size', () => {
var input = '<spacer size-sm="10"></spacer>';
var expected = `
Expand Down

0 comments on commit 74cf2ca

Please sign in to comment.