All files / app/assets/javascripts/vue_merge_request_widget/stores/artifacts_list getters.js

100% Statements 6/6
100% Branches 4/4
100% Functions 1/1
100% Lines 6/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14    6x 17x 10x     7x 3x     4x    
import { s__, n__ } from '~/locale';
 
export const title = (state) => {
  if (state.isLoading) {
    return s__('BuildArtifacts|Loading artifacts');
  }
 
  if (state.hasError) {
    return s__('BuildArtifacts|An error occurred while fetching the artifacts');
  }
 
  return n__('View exposed artifact', 'View %d exposed artifacts', state.artifacts.length);
};