Commit 842377ab authored by Fatih Acet's avatar Fatih Acet

Merge branch 'winh-fix-dummy-badge-id' into 'master'

Fix transient failure of badge_list_spec.js

See merge request gitlab-org/gitlab-ce!21363
parents a78c443d b4dc978d
import _ from 'underscore';
import { PROJECT_BADGE } from '~/badges/constants';
import { DUMMY_IMAGE_URL, TEST_HOST } from 'spec/test_constants';
export const createDummyBadge = () => {
const id = Math.floor(1000 * Math.random());
const id = _.uniqueId();
return {
id,
imageUrl: `${TEST_HOST}/badges/${id}/image/url`,
......
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