From 937a99043dc7ae5fc2bc23cbe596c0976ea94b39 Mon Sep 17 00:00:00 2001 From: Stefan Topfstedt Date: Thu, 18 Jul 2024 11:30:21 -0700 Subject: [PATCH] corrects test assertions. check equality between the given args, not truthyness of the first argument. --- .../components/single-event-objective-list-test.js | 2 +- .../tests/integration/components/taxonomy-manager-test.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/test-app/tests/integration/components/single-event-objective-list-test.js b/packages/test-app/tests/integration/components/single-event-objective-list-test.js index fb3eff5784..460427c0df 100644 --- a/packages/test-app/tests/integration/components/single-event-objective-list-test.js +++ b/packages/test-app/tests/integration/components/single-event-objective-list-test.js @@ -96,7 +96,7 @@ module('Integration | Component | ilios calendar single event objective list', f `); assert.notOk(component.title.displayModeSwitcher.isVisible); - assert.ok(component.tree.domains.length, 2); + assert.strictEqual(component.tree.domains.length, 2); }); test('collapsed by default', async function (assert) { diff --git a/packages/test-app/tests/integration/components/taxonomy-manager-test.js b/packages/test-app/tests/integration/components/taxonomy-manager-test.js index 897ca70f9b..ad1ede0616 100644 --- a/packages/test-app/tests/integration/components/taxonomy-manager-test.js +++ b/packages/test-app/tests/integration/components/taxonomy-manager-test.js @@ -171,13 +171,13 @@ module('Integration | Component | taxonomy manager', function (hooks) { assert.strictEqual(component.vocabulary.options[1].value, '2'); assert.strictEqual(component.vocabulary.options[1].text, 'Bar (Medicine)'); - assert.ok(component.availableTerms.length, 2); + assert.strictEqual(component.availableTerms.length, 2); assert.strictEqual(component.availableTerms[0].name, 'Alpha'); assert.strictEqual(component.availableTerms[1].name, 'Beta'); await component.vocabulary.set('2'); - assert.ok(component.availableTerms.length, 1); + assert.strictEqual(component.availableTerms.length, 1); assert.strictEqual(component.availableTerms[0].name, 'Gamma'); }); @@ -231,7 +231,7 @@ module('Integration | Component | taxonomy manager', function (hooks) { assert.strictEqual(component.vocabulary.options.length, 2); assert.notOk(component.vocabulary.options[0].isSelected); assert.ok(component.vocabulary.options[1].isSelected); - assert.ok(component.availableTerms.length, 1); + assert.strictEqual(component.availableTerms.length, 1); assert.strictEqual(component.availableTerms[0].name, 'Gamma'); }); });