mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-28 05:00:53 -04:00
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: Dario-DC <105294544+Dario-DC@users.noreply.github.com> Co-authored-by: Zaira <33151350+zairahira@users.noreply.github.com>
51 lines
1.0 KiB
TypeScript
51 lines
1.0 KiB
TypeScript
import { challengeFiles } from '../../../utils/__fixtures__/challenges';
|
|
import { challengeTypes } from '../../../../shared/config/challenge-types';
|
|
|
|
const baseChallenge = {
|
|
id: '1',
|
|
completedDate: 1,
|
|
challengeFiles: []
|
|
}
|
|
|
|
export const onlySolution = {
|
|
...baseChallenge,
|
|
solution: 'https://some-url.com'
|
|
}
|
|
|
|
export const legacySolution = {
|
|
...baseChallenge,
|
|
solution: 'var x = 1;'
|
|
}
|
|
|
|
export const bothLinks = {
|
|
...baseChallenge,
|
|
githubLink: 'https://some.thing',
|
|
solution: 'https://some-url.com'
|
|
}
|
|
|
|
export const withChallenges = {
|
|
...bothLinks,
|
|
challengeFiles
|
|
}
|
|
|
|
export const multifileSolution = {
|
|
...withChallenges,
|
|
challengeType: challengeTypes.multifileCertProject
|
|
}
|
|
|
|
export const multifilePythonSolution = {
|
|
...withChallenges,
|
|
challengeType: challengeTypes.multifilePythonCertProject
|
|
}
|
|
|
|
export const onlyGithubLink = {
|
|
...baseChallenge,
|
|
githubLink: 'https://some.thing'
|
|
}
|
|
|
|
export const invalidGithubLink = {
|
|
...baseChallenge,
|
|
githubLink: 'something',
|
|
solution: 'https://some-url.com'
|
|
}
|