From 3d8a70d676091859af73b7881e38bbab99bd5af0 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Fri, 21 May 2021 15:26:26 -0400 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20remove=20unnecessary=20?= =?UTF-8?q?awaits?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/rose/form/checkbox-test.js | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/addons/rose/tests/integration/components/rose/form/checkbox-test.js b/addons/rose/tests/integration/components/rose/form/checkbox-test.js index 904a4c11e..594704918 100644 --- a/addons/rose/tests/integration/components/rose/form/checkbox-test.js +++ b/addons/rose/tests/integration/components/rose/form/checkbox-test.js @@ -9,9 +9,9 @@ module('Integration | Component | rose/form/checkbox', function (hooks) { test('it renders', async function (assert) { assert.expect(3); await render(hbs``); - assert.equal(await find('label').textContent.trim(), 'Label'); - assert.ok(await find('input')); - assert.notOk(await find('.rose-form-checkbox-label-description')); + assert.equal(find('label').textContent.trim(), 'Label'); + assert.ok(find('input')); + assert.notOk(find('.rose-form-checkbox-label-description')); }); test('it renders optional description paragraph', async function (assert) { @@ -20,14 +20,14 @@ module('Integration | Component | rose/form/checkbox', function (hooks) { hbs`` ); assert.equal( - await find('.rose-form-checkbox-label-text').textContent.trim(), + find('.rose-form-checkbox-label-text').textContent.trim(), 'Label' ); assert.equal( - await find('.rose-form-checkbox-label-description').textContent.trim(), + find('.rose-form-checkbox-label-description').textContent.trim(), 'Hello world' ); - assert.ok(await find('input')); + assert.ok(find('input')); }); test('it renders optional helper text', async function (assert) { @@ -36,7 +36,7 @@ module('Integration | Component | rose/form/checkbox', function (hooks) { hbs`` ); assert.equal( - await find('.rose-form-helper-text').textContent.trim(), + find('.rose-form-helper-text').textContent.trim(), 'Hello world' ); }); @@ -60,26 +60,26 @@ module('Integration | Component | rose/form/checkbox', function (hooks) { test('it is not checked by default', async function (assert) { await render(hbs``); - assert.equal(await find('input').checked, false); + assert.equal(find('input').checked, false); }); test('it is not disabled by default', async function (assert) { await render(hbs``); - assert.equal(await find('input').disabled, false); + assert.equal(find('input').disabled, false); }); test('it is checked when @checked={{true}}', async function (assert) { await render(hbs``); - assert.equal(await find('input').checked, true); + assert.equal(find('input').checked, true); }); test('it marks error when @error={{true}}', async function (assert) { await render(hbs``); - assert.ok(await find('.error')); + assert.ok(find('.error')); }); test('it is disabled when @disabled={{true}}', async function (assert) { await render(hbs``); - assert.equal(await find('input').disabled, true); + assert.equal(find('input').disabled, true); }); });