Skip to content
Snippets Groups Projects
Verified Commit 586bf10f authored by Artur Fedorov's avatar Artur Fedorov :three:
Browse files

This MR removes direct data manipulation

As part of Vue 3 migration
overriding method behavior and
direct data manipulation
should be avoided
parent b76fa026
No related branches found
No related tags found
1 merge request!146133Removes direct data manipulation from usage_by_month_spec
......@@ -103,16 +103,8 @@ describe('UsageByMonth', () => {
});
});
it('displays title', () => {
expect(
findGlAreaChart().vm.$scopedSlots['tooltip-title']()[0].text,
).toMatchInterpolatedText('Feb 2023 (Month)');
});
it('displays value as human size', () => {
expect(
findGlAreaChart().vm.$scopedSlots['tooltip-content']()[0].text,
).toMatchInterpolatedText('6.2 GiB');
it('displays title and value as human size', () => {
expect(findGlAreaChart().text()).toBe('Feb 2023 (Month) 6.2 GiB');
});
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment