26 lines
647 B
CoffeeScript
26 lines
647 B
CoffeeScript
import { test, moduleForComponent } from 'ember-qunit'
|
|
import hbs from 'htmlbars-inline-precompile'
|
|
|
|
moduleForComponent 'editable-attribute', 'Integration | Component | editable attribute', {
|
|
integration: true
|
|
}
|
|
|
|
test 'it renders', (assert) ->
|
|
assert.expect 2
|
|
|
|
# Set any properties with @set 'myProperty', 'value'
|
|
# Handle any actions with @on 'myAction', (val) ->
|
|
|
|
@render hbs """{{editable-attribute}}"""
|
|
|
|
assert.equal @$().text().trim(), ''
|
|
|
|
# Template block usage:
|
|
@render hbs """
|
|
{{#editable-attribute}}
|
|
template block text
|
|
{{/editable-attribute}}
|
|
"""
|
|
|
|
assert.equal @$().text().trim(), 'template block text'
|