Commit 36456d6e authored by Sam Beckham's avatar Sam Beckham Committed by Rémy Coutable

Fixes a CI failure

In one of the API tests, `gon.relative_url_root` was set to
`http://host.invalid` which is not a relative root. This breaks the
tests.
parent 174ee44b
---
title: Fixes a CI failure in jest
merge_request: 11586
author:
type: fixed
...@@ -4,7 +4,7 @@ import Api from 'ee/api'; ...@@ -4,7 +4,7 @@ import Api from 'ee/api';
describe('Api', () => { describe('Api', () => {
const dummyApiVersion = 'v3000'; const dummyApiVersion = 'v3000';
const dummyUrlRoot = 'http://host.invalid'; const dummyUrlRoot = '/gitlab';
const dummyGon = { const dummyGon = {
api_version: dummyApiVersion, api_version: dummyApiVersion,
relative_url_root: dummyUrlRoot, relative_url_root: dummyUrlRoot,
......
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