Fix test check typo

Fix punctuation
This commit is contained in:
Berkeley Martinez
2016-06-04 18:12:14 -07:00
parent 1acd3139c3
commit 3086e27681

View File

@ -57,7 +57,7 @@ function completedChallenge(state) {
moveToNextChallenge(), moveToNextChallenge(),
makeToast({ makeToast({
title: 'Congratulations!', title: 'Congratulations!',
message: isSignedIn ? ' Saving...' : 'Moving on to next challenge', message: isSignedIn ? ' Saving...' : 'Moving on to next challenge.',
type: 'success' type: 'success'
}) })
); );
@ -74,7 +74,7 @@ export default function completionSaga(actions$, getState) {
.flatMap(({ type }) => { .flatMap(({ type }) => {
const state = getState(); const state = getState();
const { tests } = state.challengesApp; const { tests } = state.challengesApp;
if (tests.length > 1 && tests.every(test => test.pass && !test.err)) { if (tests.length > 0 && tests.every(test => test.pass && !test.err)) {
if (type === types.checkChallenge) { if (type === types.checkChallenge) {
return Observable.of( return Observable.of(
showChallengeComplete() showChallengeComplete()
@ -98,8 +98,8 @@ export default function completionSaga(actions$, getState) {
} }
} }
return Observable.just(makeToast({ return Observable.just(makeToast({
message: 'Not all tests are passing', message: 'Not all tests are passing, yet.',
title: 'Not quite there', title: 'Almost There!',
type: 'info' type: 'info'
})); }));
}); });