Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@edx/edx-proctoring

Package Overview
Dependencies
Maintainers
11
Versions
232
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edx/edx-proctoring - npm Package Compare versions

Comparing version 3.17.0 to 3.17.1

9

edx_proctoring/static/proctoring/js/views/proctored_exam_onboarding_view.js

@@ -205,3 +205,10 @@ edx = edx || {};

data = $.parseJSON(response.responseText);
try {
data = $.parseJSON(response.responseText);
} catch (error) {
data = {
detail: 'An unexpected error occured. Please try again later.'
};
}
if (data.detail) {

@@ -208,0 +215,0 @@ $errorResponse = $('#error-response');

@@ -448,2 +448,26 @@ describe('ProctoredExamOnboardingView', function() {

});
it('renders correctly with non-JSON parseable error message response', function() {
var errorMessage;
this.server.respondWith('GET', '/api/edx_proctoring/v1/user_onboarding/status/course_id/test_course_id',
[
500,
{
'Content-Type': 'application/json'
},
''
]
);
this.proctored_exam_onboarding_view = new edx.instructor_dashboard.proctoring.ProctoredExamOnboardingView();
this.server.respond();
this.server.respond();
errorMessage = this.proctored_exam_onboarding_view.$el.find('.error-response');
expect(errorMessage.html()).toContain('An unexpected error occured. Please try again later.');
expect(errorMessage).toBeVisible();
expect(this.proctored_exam_onboarding_view.$el.find('.onboarding-status-content')).not.toBeVisible();
});
});

2

package.json

@@ -5,3 +5,3 @@ {

"//": "Note that the version format is slightly different than that of the Python version when using prereleases.",
"version": "3.17.0",
"version": "3.17.1",
"main": "edx_proctoring/static/index.js",

@@ -8,0 +8,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc