-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(attribute-conversion): fixes issue #37 with parsing multiple attr…
…ibutes
- Loading branch information
Showing
3 changed files
with
46 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { moduleForComponent, test } from 'ember-qunit'; | ||
import hbs from 'htmlbars-inline-precompile'; | ||
|
||
moduleForComponent('attribute-expansion', 'Integration | Component | attribute expansion', { | ||
integration: true | ||
}); | ||
|
||
test('it renders', function(assert) { | ||
// Set any properties with this.set('myProperty', 'value'); | ||
// Handle any actions with this.on('myAction', function(val) { ... }); | ||
|
||
this.render(hbs`<box xs="12 visible horizontal wrap"></box>`); | ||
|
||
let box = this.$().find('box').get(0); | ||
|
||
assert.equal( | ||
box.tagName.toLowerCase(), | ||
'box', | ||
`We rendered the <box>: ${box.outerHTML}`); | ||
assert.equal( | ||
box.className, | ||
'col-xs-12 visible-xs horizontal-xs wrap-xs', | ||
`We rendered the right class names: ${box.outerHTML}`); | ||
}); |