mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-17 16:00:50 -04:00
45 lines
798 B
TypeScript
45 lines
798 B
TypeScript
import { challengeFiles } from '../../../utils/__fixtures__/challenges';
|
|
|
|
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: 14
|
|
}
|
|
|
|
export const onlyGithubLink = {
|
|
...baseChallenge,
|
|
githubLink: 'https://some.thing'
|
|
}
|
|
|
|
export const invalidGithubLink = {
|
|
...baseChallenge,
|
|
githubLink: 'something',
|
|
solution: 'https://some-url.com'
|
|
}
|