Skip to content

Fix date spec failure merge_request_analytics/graphql/throughput_chart_query_builder_spec.js

Mark Chao requested to merge 243437-fix-master into master

What does this MR do?

In the spec we want the beginning of the month.

Due to we use current date as prototype, and manipulate month first, during the 31st, when we want a month with only 30 days, the month will increase unintentionally.

This can either be fixed if we manipulate days first, or just use Date.new(year, month, day).

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Closes #243437 (closed)

Edited by Mark Chao

Merge request reports