Commit d6ddd73d authored by Filipa Lacerda's avatar Filipa Lacerda

Fix karma failures

parent 7720f498
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
import axios from 'axios'; import axios from 'axios';
import SmartInterval from '~/smart_interval'; import SmartInterval from '~/smart_interval';
import { parseSeconds, stringifyTime } from './lib/utils/pretty_time'; import { parseSeconds, stringifyTime } from './lib/utils/pretty_time';
import { addDelimiter } from './lib/utils/text_utility';
const healthyClass = 'geo-node-healthy'; const healthyClass = 'geo-node-healthy';
const unhealthyClass = 'geo-node-unhealthy'; const unhealthyClass = 'geo-node-unhealthy';
...@@ -52,7 +53,7 @@ class GeoNodeStatus { ...@@ -52,7 +53,7 @@ class GeoNodeStatus {
static formatCountAndPercentage(count, total, percentage) { static formatCountAndPercentage(count, total, percentage) {
if (count !== null || total != null) { if (count !== null || total != null) {
return `${gl.text.addDelimiter(count)}/${gl.text.addDelimiter(total)} (${percentage})`; return `${addDelimiter(count)}/${addDelimiter(total)} (${percentage})`;
} }
return notAvailable; return notAvailable;
...@@ -60,7 +61,7 @@ class GeoNodeStatus { ...@@ -60,7 +61,7 @@ class GeoNodeStatus {
static formatCount(count) { static formatCount(count) {
if (count !== null) { if (count !== null) {
return gl.text.addDelimiter(count); return addDelimiter(count);
} }
return notAvailable; return notAvailable;
......
<script> <script>
import statusIcon from '~/vue_merge_request_widget/components/mr_widget_status_icon'; import statusIcon from '~/vue_merge_request_widget/components/mr_widget_status_icon';
import loadingIcon from '~/vue_shared/components/loading_icon.vue'; import loadingIcon from '~/vue_shared/components/loading_icon.vue';
import '~/lib/utils/text_utility'; import { pluralize } from '~/lib/utils/text_utility';
import issuesBlock from './mr_widget_code_quality_issues.vue'; import issuesBlock from './mr_widget_code_quality_issues.vue';
export default { export default {
...@@ -90,7 +90,7 @@ export default { ...@@ -90,7 +90,7 @@ export default {
methods: { methods: {
pointsText(issues) { pointsText(issues) {
return gl.text.pluralize('point', issues.length); return pluralize('point', issues.length);
}, },
toggleCollapsed() { toggleCollapsed() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment