Skip to content
代码片段 群组 项目
提交 9252df6a 编辑于 作者: Payton Burdette's avatar Payton Burdette
浏览文件

Apply reviewer feedback

上级 8abb5284
加载中
......@@ -69,7 +69,7 @@ export default {
return this.minutesUsageData.map((cur) => cur.month);
},
isDataEmpty() {
return this.minutesUsageData.length === 0 && this.selectedMonth.length === 0;
return this.minutesUsageData.length === 0 && !this.selectedMonth;
},
},
watch: {
......
......@@ -37,7 +37,7 @@ describe('Minutes usage by month chart component', () => {
expect(findAlert().exists()).toBe(false);
});
it('renders an alert when no data is avaliable', () => {
it('renders an alert when no data is available', () => {
createComponent({ minutesUsageData: [] });
expect(findAlert().exists()).toBe(true);
......
......@@ -55,7 +55,7 @@ describe('Minutes usage by project chart component', () => {
});
describe('without CI minutes data', () => {
it('renders an alert when no data is avaliable', () => {
it('renders an alert when no data is available', () => {
createComponent({ minutesUsageData: [] });
expect(findAlert().exists()).toBe(true);
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册