diff --git a/src/controllers/player.test.js b/src/controllers/player.test.js index ec65b39..b4a6bfb 100644 --- a/src/controllers/player.test.js +++ b/src/controllers/player.test.js @@ -406,7 +406,7 @@ describe('Matching Player Controller', function(){ expect(Materia.Score.submitQuestionForScoring).toHaveBeenCalledWith( question.id, question.answers[0].text, - question.assets[2] //null for text answers, audio description for audio answers + question.assets[1] != 0 ? question.assets[2] : null //null for text answers, audio description for audio answers ) }) }); diff --git a/src/demo.json b/src/demo.json index 929ab30..9cbfe83 100644 --- a/src/demo.json +++ b/src/demo.json @@ -25,7 +25,7 @@ "assets":[ 0, 0, - null + 1000 ] }, { @@ -46,7 +46,7 @@ "assets":[ 0, 0, - null + 1001 ] }, { @@ -67,7 +67,7 @@ "assets":[ 0, 0, - null + 1010 ] }, { @@ -88,7 +88,7 @@ "assets":[ 0, 0, - null + 1011 ] }, { @@ -109,7 +109,7 @@ "assets":[ 0, 0, - null + 1100 ] }, { @@ -130,7 +130,7 @@ "assets":[ 0, 0, - null + 1101 ] }, { @@ -172,7 +172,7 @@ "assets":[ 0, 0, - null + 1110 ] }, { @@ -193,7 +193,7 @@ "assets":[ 0, 0, - null + 1111 ] }, {