Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of UI: Use specific date in clients activity test into release/1.13.x #19423

Conversation

hc-github-team-secure-vault-core
Copy link
Collaborator

Backport

This PR is auto-generated from #19419 to be assessed for backporting due to the inclusion of the label backport/1.13.x.

The below text is copied from the body of the original PR.


Clients activity test was failing due to subtracting months twice. Instead of subtracting the month by -2 and also subtracting using subMonths(..,..) we should only subtract dates using subMonths.


Overview of commits

@@ -63,9 +64,9 @@ module('Unit | Adapter | clients activity', function (hooks) {

test('it formats end_time only if only start_time is a timestamp string', async function (assert) {
assert.expect(2);
const twoMothsAgo = subMonths(this.endDate, 2);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seeing that I wrote to moths still makes me laugh 😂

@hellobontempo hellobontempo enabled auto-merge (squash) March 2, 2023 22:20
@hellobontempo hellobontempo merged commit 9f545bd into release/1.13.x Mar 2, 2023
@hellobontempo hellobontempo deleted the backport/ui/clients-activity-test/steadily-enjoyed-wombat branch March 2, 2023 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants