Skip to content

Commit

Permalink
Merge branch 'release-2.2.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
oat-github-bot committed Apr 8, 2024
2 parents 9ec9d87 + a0e9388 commit 37f39d9
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oat-sa/tao-item-runner-qti",
"version": "2.2.2",
"version": "2.2.3",
"displayName": "TAO Item Runner QTI",
"description": "TAO QTI Item Runner modules",
"files": [
Expand Down
5 changes: 4 additions & 1 deletion src/qtiItem/core/interactions/EndAttemptInteraction.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import InlineInteraction from 'taoQtiItem/qtiItem/core/interactions/InlineInteraction';
export default InlineInteraction.extend({
qtiClass: 'endAttemptInteraction'
qtiClass: 'endAttemptInteraction',
getNormalMaximum() {
return 0;
}
});
5 changes: 4 additions & 1 deletion src/qtiItem/core/interactions/UploadInteraction.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import InlineInteraction from 'taoQtiItem/qtiItem/core/interactions/BlockInteraction';
var UploadInteraction = InlineInteraction.extend({
qtiClass: 'uploadInteraction'
qtiClass: 'uploadInteraction',
getNormalMaximum() {
return 0;
}
});
export default UploadInteraction;
6 changes: 3 additions & 3 deletions test/qtiItem/maxScore/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,14 @@ define([
expectedMaximum: 1,
maxScore: 4
},
{ title: 'upload', data: dataUpload, expectedMaximum: undefined, maxScore: undefined },
{ title: 'upload', data: dataUpload, expectedMaximum: 0, maxScore: 0 },
{ title: 'custom interaction', data: dataPci, expectedMaximum: 0, maxScore: 0 },
{ title: 'custom response processing', data: dataCustomRp, expectedMaximum: undefined, maxScore: undefined },
{
title: 'upload and choice - correct',
data: dataUploadChoice,
expectedMaximum: undefined,
maxScore: undefined
expectedMaximum: 0,
maxScore: 0
},
{ title: 'hottext - correct', data: dataHottextCorrect, expectedMaximum: 1, maxScore: 1 },
{ title: 'hotspot - correct', data: dataHotspotCorrect, expectedMaximum: 1, maxScore: 1 },
Expand Down

0 comments on commit 37f39d9

Please sign in to comment.