@edx/edx-proctoring
Advanced tools
Comparing version 1.5.0-rc.1 to 1.5.0-rc.2
@@ -147,4 +147,7 @@ var edx = edx || {}; | ||
self.secondsLeft --; | ||
if (self.timerTick % self.poll_interval === self.poll_interval / 2) { | ||
edx.courseware.proctored_exam.pingApplication().catch(self.endExamForFailureState.bind(self)); | ||
if ( | ||
self.timerTick % self.poll_interval === self.poll_interval / 2 && | ||
edx.courseware.proctored_exam.configuredWorkerURL | ||
) { | ||
edx.courseware.proctored_exam.pingApplication().catch(self.endExamForFailureState.bind(self)); | ||
} | ||
@@ -151,0 +154,0 @@ if (self.timerTick % self.poll_interval === 0) { |
@@ -100,6 +100,8 @@ describe('ProctoredExamView', function () { | ||
edx.courseware.proctored_exam.pingApplication = jasmine.createSpy().and.returnValue(Promise.resolve()); | ||
edx.courseware.proctored_exam.configuredWorkerURL = 'nonempty/string.html'; | ||
this.proctored_exam_view.timerTick = this.proctored_exam_view.poll_interval / 2 - 1; | ||
this.proctored_exam_view.updateRemainingTime(this.proctored_exam_view); | ||
expect(edx.courseware.proctored_exam.pingApplication).toHaveBeenCalled(); | ||
delete edx.courseware.proctored_exam.pingApplication | ||
delete edx.courseware.proctored_exam.pingApplication; | ||
delete edx.courseware.proctored_exam.configuredWorkerURL; | ||
}); | ||
@@ -106,0 +108,0 @@ it("reloads the page after failure-state ajax call", function(done) { |
{ | ||
"name": "@edx/edx-proctoring", | ||
"//": "Be sure to update the version number in edx_proctoring/__init__.py", | ||
"version": "1.5.0-rc.1", | ||
"//": "Note that the version format is slightly different than that of the Python version when using prereleases.", | ||
"version": "1.5.0-rc.2", | ||
"main": "edx_proctoring/static/index.js", | ||
@@ -6,0 +7,0 @@ "repository": { |
404838
5481