Skip to content

Commit

Permalink
Add test to verify that the <center> tag works
Browse files Browse the repository at this point in the history
  • Loading branch information
gakimball committed Mar 4, 2016
1 parent 418bfec commit d094d1a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/components.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
var compare = require('./lib/compare');

describe('center', () => {
it('applies a center class and center alignment attribute to the first child', () => {
var input = `
<center>
<div></div>
</center>
`;
var expected = `
<center>
<div align="center" class="center"></div>
</center>
`;

compare(input, expected);
});
});

describe('Button', () => {
it('creates a simple button', () => {
var input = '<button href="http://zurb.com">Button</button>';
Expand Down

0 comments on commit d094d1a

Please sign in to comment.