Skip to content

Commit

Permalink
added some messages to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchadwick committed Nov 8, 2024
1 parent 9461c12 commit 5c79845
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,16 @@ module('Integration | Component | password-validator', function (hooks) {
test('it renders', async function (assert) {
await render(hbs`<PasswordValidator />`);

assert.ok(component);
assert.strictEqual(component.label, 'Password:');
assert.ok(component, 'component exists');
assert.strictEqual(component.label, 'Password:', 'has Password label');
});

test('it fails blank password', async function (assert) {
await render(hbs`<PasswordValidator />`);

assert.false(component.hasError);
assert.false(component.hasError, 'no error with no input');
await component.submit();

assert.true(component.hasError);
assert.true(component.hasError, 'shows blank password error');
});

test('it fails short password', async function (assert) {
Expand Down

0 comments on commit 5c79845

Please sign in to comment.