Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/performance_bar/stores/performance_bar_store_spec.js')
-rw-r--r--spec/frontend/performance_bar/stores/performance_bar_store_spec.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/frontend/performance_bar/stores/performance_bar_store_spec.js b/spec/frontend/performance_bar/stores/performance_bar_store_spec.js
index b7324ba2f6e..7d5c5031792 100644
--- a/spec/frontend/performance_bar/stores/performance_bar_store_spec.js
+++ b/spec/frontend/performance_bar/stores/performance_bar_store_spec.js
@@ -1,9 +1,9 @@
import PerformanceBarStore from '~/performance_bar/stores/performance_bar_store';
describe('PerformanceBarStore', () => {
- describe('truncateUrl', () => {
+ describe('displayName', () => {
let store;
- const findUrl = (id) => store.findRequest(id).truncatedUrl;
+ const findUrl = (id) => store.findRequest(id).displayName;
beforeEach(() => {
store = new PerformanceBarStore();
@@ -41,6 +41,11 @@ describe('PerformanceBarStore', () => {
store.addRequest('id', 'http://localhost:3001/h5bp/html5-boilerplate/#frag/ment');
expect(findUrl('id')).toEqual('html5-boilerplate');
});
+
+ it('appends the GraphQL operation name', () => {
+ store.addRequest('id', 'http://localhost:3001/api/graphql', 'someOperation');
+ expect(findUrl('id')).toBe('graphql (someOperation)');
+ });
});
describe('setRequestDetailsData', () => {