@byu-oit/canvas-sdk
Advanced tools
Comparing version 0.1.14 to 0.1.15
{ | ||
"name": "@byu-oit/canvas-sdk", | ||
"version": "0.1.14", | ||
"version": "0.1.15", | ||
"description": "A wrapper around Instructure's Canvas API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -39,2 +39,6 @@ 'use strict'; | ||
users.getEnrollments = async function(sisUserId) { | ||
return await canvas.requestAll(`users/sis_user_id:${sisUserId}/enrollments`); | ||
}; | ||
users.add = async function(name, sortableName, email, sisUserId, loginId) { | ||
@@ -41,0 +45,0 @@ const options = { |
@@ -115,2 +115,4 @@ 'use strict'; | ||
assert.strictEqual((sections[0].students[0].sis_user_id), SIS_USER_ID); | ||
const enrollments = await canvas.users.getEnrollments(SIS_USER_ID); | ||
assert.strictEqual(enrollments.length, 1); | ||
let enrollment = await canvas.sections.getEnrollment(SIS_SECTION_ID, SIS_USER_ID); | ||
@@ -117,0 +119,0 @@ assert.strictEqual(enrollment.sis_user_id, SIS_USER_ID); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51777
846