Skip to content

Commit

Permalink
fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ens13533 committed Apr 4, 2024
1 parent 4d51639 commit 1bc8cf5
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions coral-component-clock/src/tests/test.Clock.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,12 +563,10 @@ describe('Clock', function () {
expect(el._elements.hours.value).to.equal('02');
expect(el._elements.minutes.value).to.equal('02');
expect(el._elements.valueAsText.textContent).to.equal('02:02 PM');

done();
}, true);
} else {
done();
}

done();
});

it('should allow AM/PM lowercase and uppercase format', function () {
Expand Down Expand Up @@ -619,12 +617,10 @@ describe('Clock', function () {
expect(el._elements.hours.value).to.equal('');
expect(el._elements.minutes.value).to.equal('');
expect(el._elements.valueAsText.textContent).to.equal('');

done();
}, true);
} else {
done();
}

done();
});

it('should not change display nor value if AM/PM is set but hours format is 24 hours clock', function (done) {
Expand All @@ -644,12 +640,10 @@ describe('Clock', function () {
expect(el._elements.hours.value).to.equal('11');
expect(el._elements.minutes.value).to.equal('32');
expect(el._elements.valueAsText.textContent).to.equal('11:32 AM');

done();
}, true);
} else {
done();
}

done();
});
});

Expand Down

0 comments on commit 1bc8cf5

Please sign in to comment.