diff --git a/tests/integration/modifiers/autoresize-test.js b/tests/integration/modifiers/autoresize-test.js index 85937f6..fa64c13 100644 --- a/tests/integration/modifiers/autoresize-test.js +++ b/tests/integration/modifiers/autoresize-test.js @@ -6,6 +6,7 @@ import hbs from 'htmlbars-inline-precompile'; module('Integration | Modifier | autoresize', function (hooks) { setupRenderingTest(hooks); + let shortString = 'abc'; let longString; hooks.beforeEach(function () { longString = ''; @@ -42,6 +43,50 @@ module('Integration | Modifier | autoresize', function (hooks) { assert.extendedDom('textarea').doesNotOverflowY(); }); + test('it resizes textarea height to fit input min height on initial render with small value', async function (assert) { + this.set('value', shortString); + + await render( + hbs`