message: Add API tests for coding challenge continue codes
diff: @@ -86,3 +86,37 @@ describe('/rest/continue-code', () => {
  .expect('status', 200)
  })
  })
  +
  +describe('/rest/continue-code-findIt', () => {
  + it('GET can retrieve continue code for currently solved challenges', () => {
  + return frisby.get(REST_URL + '/continue-code-findIt')
  + .expect('status', 200)
  + })
  +
  + it('PUT invalid continue code is rejected', () => {
  + return frisby.put(REST_URL + '/continue-code-findIt/apply/ThisIsDefinitelyNotAValidContinueCode')
  + .expect('status', 404)
  + })
  +
  + it('PUT continue code for more than one challenge is accepted', () => { // using [15, 69] here which both have a Coding Challenge
  + return frisby.put(REST_URL + '/continue-code-findIt/apply/Xg9oK0VdbW5g1KX9G7JYnqLpz3rAPBh6p4eRlkDM6EaBON2QoPmxjyvwMrP6')
  + .expect('status', 200)
  + })
  +})
  +
  +describe('/rest/continue-code-fixIt', () => {
  + it('GET can retrieve continue code for currently solved challenges', () => {
  + return frisby.get(REST_URL + '/continue-code-fixIt')
  + .expect('status', 200)
  + })
  +
  + it('PUT invalid continue code is rejected', () => {
  + return frisby.put(REST_URL + '/continue-code-fixIt/apply/ThisIsDefinitelyNotAValidContinueCode')
  + .expect('status', 404)
  + })
  +
  + it('PUT continue code for more than one challenge is accepted', () => { // using [15, 69] here which both have a Coding Challenge
  + return frisby.put(REST_URL + '/continue-code-fixIt/apply/y28BEPE2k3yRrdz5p6DGqJONnj41n5UEWawYWgBMoVmL79bKZ8Qve0Xl5QLW')
  + .expect('status', 200)
  + })
  +})
  