diff --git a/.travis.yml b/.travis.yml index d8a2d21..a47887c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ language: node_js node_js: # we recommend testing addons with the same minimum supported node version as Ember CLI # so that your addon works for all apps - - "6" + - "10" sudo: false dist: trusty diff --git a/tests/integration/modifiers/will-destroy-test.js b/tests/integration/modifiers/will-destroy-test.js index 3ea2726..61a86c9 100644 --- a/tests/integration/modifiers/will-destroy-test.js +++ b/tests/integration/modifiers/will-destroy-test.js @@ -1,7 +1,9 @@ +import Component from '@ember/component'; import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render } from '@ember/test-helpers'; import hbs from 'htmlbars-inline-precompile'; +import { settled } from '@ember/test-helpers'; module('Integration | Modifier | will-destroy', function(hooks) { setupRenderingTest(hooks); @@ -43,4 +45,42 @@ module('Integration | Modifier | will-destroy', function(hooks) { // trigger destroy this.set('show', false); }); + + test('it should invoke UI re-rendering when changing tracked properties', async function(assert) { + this.owner.register( + 'component:test-component', + Component.extend({ + showMessage: true, + + actions: { + toggle() { + this.set('showMessage', false); + }, + }, + }) + ); + + this.owner.register( + 'template:components/test-component', + hbs` + {{#if this.showMessage}} +