Merge pull request #16 from Bouncey/feat/backendTests

Add backend tests
This commit is contained in:
Stuart Taylor
2018-04-17 11:33:04 +01:00
committed by Mrugesh Mohapatra
parent 5f0068e9c8
commit fa68757553
8 changed files with 52 additions and 44 deletions

View File

@@ -8,6 +8,7 @@ import executeChallengeEpic from './execute-challenge-epic';
import codeLockEpic from './code-lock-epic';
const ns = 'challenge';
export const backendNS = 'backendChallenge';
const initialState = {
challengeFiles: {},
@@ -95,6 +96,7 @@ export const checkChallenge = createAction(types.checkChallenge);
export const executeChallenge = createAction(types.executeChallenge);
export const submitChallenge = createAction(types.submitChallenge);
export const backendFormValuesSelector = state => state.form[backendNS];
export const challengeFilesSelector = state => state[ns].challengeFiles;
export const challengeMetaSelector = state => state[ns].challengeMeta;
export const challengeTestsSelector = state => state[ns].challengeTests;