mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
fixing date formatting to month day year
This commit is contained in:
@@ -10,8 +10,8 @@ describe("CourseDifferencesChangesTests", () => {
|
||||
name: "Test Course",
|
||||
assignmentGroups: [],
|
||||
daysOfWeek: [],
|
||||
startDate: "09/07/2024 23:59:00",
|
||||
endDate: "09/07/2024 23:59:00",
|
||||
startDate: "07/09/2024 23:59:00",
|
||||
endDate: "07/09/2024 23:59:00",
|
||||
defaultDueTime: {
|
||||
hour: 23,
|
||||
minute: 59,
|
||||
@@ -40,8 +40,8 @@ describe("CourseDifferencesChangesTests", () => {
|
||||
name: "Test Course",
|
||||
assignmentGroups: [],
|
||||
daysOfWeek: [],
|
||||
startDate: "09/07/2024 23:59:00",
|
||||
endDate: "09/07/2024 23:59:00",
|
||||
startDate: "07/09/2024 23:59:00",
|
||||
endDate: "07/09/2024 23:59:00",
|
||||
defaultDueTime: {
|
||||
hour: 23,
|
||||
minute: 59,
|
||||
@@ -74,8 +74,8 @@ describe("CourseDifferencesChangesTests", () => {
|
||||
name: "Test Course",
|
||||
assignmentGroups: [],
|
||||
daysOfWeek: [],
|
||||
startDate: "09/07/2024 23:59:00",
|
||||
endDate: "09/07/2024 23:59:00",
|
||||
startDate: "07/09/2024 23:59:00",
|
||||
endDate: "07/09/2024 23:59:00",
|
||||
defaultDueTime: {
|
||||
hour: 23,
|
||||
minute: 59,
|
||||
@@ -88,7 +88,7 @@ describe("CourseDifferencesChangesTests", () => {
|
||||
{
|
||||
name: "test assignment",
|
||||
description: "",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
submissionTypes: [],
|
||||
allowedFileUploadExtensions: [],
|
||||
rubric: [],
|
||||
@@ -108,7 +108,7 @@ describe("CourseDifferencesChangesTests", () => {
|
||||
{
|
||||
name: "test assignment",
|
||||
description: "new description",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
submissionTypes: [],
|
||||
allowedFileUploadExtensions: [],
|
||||
rubric: [],
|
||||
@@ -130,7 +130,7 @@ describe("CourseDifferencesChangesTests", () => {
|
||||
});
|
||||
|
||||
it("can properly ignore unchanged modules", () => {
|
||||
const commonDate = "09/07/2024 23:59:00";
|
||||
const commonDate = "07/09/2024 23:59:00";
|
||||
const oldCourse: LocalCourse = {
|
||||
settings: {
|
||||
name: "Test Course",
|
||||
@@ -171,7 +171,7 @@ describe("CourseDifferencesChangesTests", () => {
|
||||
});
|
||||
|
||||
it("only changed assignment represented", () => {
|
||||
const commonDate = "09/07/2024 23:59:00";
|
||||
const commonDate = "07/09/2024 23:59:00";
|
||||
const oldCourse: LocalCourse = {
|
||||
settings: {
|
||||
name: "Test Course",
|
||||
@@ -249,7 +249,7 @@ describe("CourseDifferencesChangesTests", () => {
|
||||
});
|
||||
|
||||
it("identical quizzes ignored", () => {
|
||||
const commonDate = "09/07/2024 23:59:00";
|
||||
const commonDate = "07/09/2024 23:59:00";
|
||||
const oldCourse: LocalCourse = {
|
||||
settings: {
|
||||
name: "Test Course",
|
||||
@@ -292,7 +292,7 @@ describe("CourseDifferencesChangesTests", () => {
|
||||
});
|
||||
|
||||
it("can detect different quiz", () => {
|
||||
const commonDate = "09/07/2024 23:59:00";
|
||||
const commonDate = "07/09/2024 23:59:00";
|
||||
const oldCourse: LocalCourse = {
|
||||
settings: {
|
||||
name: "Test Course",
|
||||
@@ -359,7 +359,7 @@ describe("CourseDifferencesChangesTests", () => {
|
||||
});
|
||||
|
||||
it("can detect only different quiz when other quizzes stay", () => {
|
||||
const commonDate = "09/07/2024 23:59:00";
|
||||
const commonDate = "07/09/2024 23:59:00";
|
||||
const oldCourse: LocalCourse = {
|
||||
settings: {
|
||||
name: "Test Course",
|
||||
@@ -433,7 +433,7 @@ describe("CourseDifferencesChangesTests", () => {
|
||||
});
|
||||
|
||||
it("same pages not detected", () => {
|
||||
const commonDate = "09/07/2024 23:59:00";
|
||||
const commonDate = "07/09/2024 23:59:00";
|
||||
const oldCourse: LocalCourse = {
|
||||
settings: {
|
||||
name: "Test Course",
|
||||
@@ -471,7 +471,7 @@ describe("CourseDifferencesChangesTests", () => {
|
||||
});
|
||||
|
||||
it("different page detected", () => {
|
||||
const commonDate = "09/07/2024 23:59:00";
|
||||
const commonDate = "07/09/2024 23:59:00";
|
||||
const oldCourse: LocalCourse = {
|
||||
settings: {
|
||||
name: "Test Course",
|
||||
@@ -527,7 +527,7 @@ describe("CourseDifferencesChangesTests", () => {
|
||||
});
|
||||
|
||||
it("different page detected but not same page", () => {
|
||||
const commonDate = "09/07/2024 23:59:00";
|
||||
const commonDate = "07/09/2024 23:59:00";
|
||||
const oldCourse: LocalCourse = {
|
||||
settings: {
|
||||
name: "Test Course",
|
||||
|
||||
@@ -9,8 +9,8 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
name: "test course",
|
||||
assignmentGroups: [],
|
||||
daysOfWeek: [],
|
||||
startDate: "09/07/2024 23:59:00",
|
||||
endDate: "09/07/2024 23:59:00",
|
||||
startDate: "07/09/2024 23:59:00",
|
||||
endDate: "07/09/2024 23:59:00",
|
||||
defaultDueTime: {
|
||||
hour: 23,
|
||||
minute: 59,
|
||||
@@ -51,8 +51,8 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
name: "test course",
|
||||
assignmentGroups: [],
|
||||
daysOfWeek: [],
|
||||
startDate: "09/07/2024 23:59:00",
|
||||
endDate: "09/07/2024 23:59:00",
|
||||
startDate: "07/09/2024 23:59:00",
|
||||
endDate: "07/09/2024 23:59:00",
|
||||
defaultDueTime: {
|
||||
hour: 23,
|
||||
minute: 59,
|
||||
@@ -94,8 +94,8 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
name: "test course",
|
||||
assignmentGroups: [],
|
||||
daysOfWeek: [],
|
||||
startDate: "09/07/2024 23:59:00",
|
||||
endDate: "09/07/2024 23:59:00",
|
||||
startDate: "07/09/2024 23:59:00",
|
||||
endDate: "07/09/2024 23:59:00",
|
||||
defaultDueTime: {
|
||||
hour: 23,
|
||||
minute: 59,
|
||||
@@ -108,7 +108,7 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
{
|
||||
name: "test assignment",
|
||||
description: "test description",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
submissionTypes: [],
|
||||
allowedFileUploadExtensions: [],
|
||||
rubric: [],
|
||||
@@ -128,7 +128,7 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
{
|
||||
name: "test assignment changed name",
|
||||
description: "test description",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
submissionTypes: [],
|
||||
allowedFileUploadExtensions: [],
|
||||
rubric: [],
|
||||
@@ -159,8 +159,8 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
name: "test course",
|
||||
assignmentGroups: [],
|
||||
daysOfWeek: [],
|
||||
startDate: "09/07/2024 23:59:00",
|
||||
endDate: "09/07/2024 23:59:00",
|
||||
startDate: "07/09/2024 23:59:00",
|
||||
endDate: "07/09/2024 23:59:00",
|
||||
defaultDueTime: {
|
||||
hour: 23,
|
||||
minute: 59,
|
||||
@@ -173,7 +173,7 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
{
|
||||
name: "test assignment",
|
||||
description: "test description",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
submissionTypes: [],
|
||||
allowedFileUploadExtensions: [],
|
||||
rubric: [],
|
||||
@@ -193,7 +193,7 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
{
|
||||
name: "test assignment",
|
||||
description: "test description",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
submissionTypes: [],
|
||||
allowedFileUploadExtensions: [],
|
||||
rubric: [],
|
||||
@@ -219,8 +219,8 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
name: "test course",
|
||||
assignmentGroups: [],
|
||||
daysOfWeek: [],
|
||||
startDate: "09/07/2024 23:59:00",
|
||||
endDate: "09/07/2024 23:59:00",
|
||||
startDate: "07/09/2024 23:59:00",
|
||||
endDate: "07/09/2024 23:59:00",
|
||||
defaultDueTime: {
|
||||
hour: 23,
|
||||
minute: 59,
|
||||
@@ -233,7 +233,7 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
{
|
||||
name: "test assignment",
|
||||
description: "test description",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
submissionTypes: [],
|
||||
allowedFileUploadExtensions: [],
|
||||
rubric: [],
|
||||
@@ -241,7 +241,7 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
{
|
||||
name: "test assignment 2",
|
||||
description: "test description",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
submissionTypes: [],
|
||||
allowedFileUploadExtensions: [],
|
||||
rubric: [],
|
||||
@@ -261,7 +261,7 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
{
|
||||
name: "test assignment",
|
||||
description: "test description",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
submissionTypes: [],
|
||||
allowedFileUploadExtensions: [],
|
||||
rubric: [],
|
||||
@@ -269,7 +269,7 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
{
|
||||
name: "test assignment 2 changed",
|
||||
description: "test description",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
submissionTypes: [],
|
||||
allowedFileUploadExtensions: [],
|
||||
rubric: [],
|
||||
@@ -299,8 +299,8 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
name: "test course",
|
||||
assignmentGroups: [],
|
||||
daysOfWeek: [],
|
||||
startDate: "09/07/2024 23:59:00",
|
||||
endDate: "09/07/2024 23:59:00",
|
||||
startDate: "07/09/2024 23:59:00",
|
||||
endDate: "07/09/2024 23:59:00",
|
||||
defaultDueTime: {
|
||||
hour: 23,
|
||||
minute: 59,
|
||||
@@ -314,7 +314,7 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
{
|
||||
name: "Test Quiz",
|
||||
description: "test description",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
shuffleAnswers: false,
|
||||
showCorrectAnswers: false,
|
||||
oneQuestionAtATime: false,
|
||||
@@ -324,7 +324,7 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
{
|
||||
name: "Test Quiz 2",
|
||||
description: "test description",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
shuffleAnswers: false,
|
||||
showCorrectAnswers: false,
|
||||
oneQuestionAtATime: false,
|
||||
@@ -346,7 +346,7 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
{
|
||||
name: "Test Quiz",
|
||||
description: "test description",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
shuffleAnswers: false,
|
||||
showCorrectAnswers: false,
|
||||
oneQuestionAtATime: false,
|
||||
@@ -356,7 +356,7 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
{
|
||||
name: "Test Quiz 3",
|
||||
description: "test description",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
shuffleAnswers: false,
|
||||
showCorrectAnswers: false,
|
||||
oneQuestionAtATime: false,
|
||||
@@ -387,8 +387,8 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
name: "test course",
|
||||
assignmentGroups: [],
|
||||
daysOfWeek: [],
|
||||
startDate: "09/07/2024 23:59:00",
|
||||
endDate: "09/07/2024 23:59:00",
|
||||
startDate: "07/09/2024 23:59:00",
|
||||
endDate: "07/09/2024 23:59:00",
|
||||
defaultDueTime: {
|
||||
hour: 23,
|
||||
minute: 59,
|
||||
@@ -403,12 +403,12 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
{
|
||||
name: "Test Page",
|
||||
text: "test contents",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
},
|
||||
{
|
||||
name: "Test Page 2",
|
||||
text: "test contents",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -425,12 +425,12 @@ describe("CourseDifferencesDeletionsTests", () => {
|
||||
{
|
||||
name: "Test Page",
|
||||
text: "test contents",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
},
|
||||
{
|
||||
name: "Test Page 3",
|
||||
text: "test contents",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -21,8 +21,8 @@ describe("FileStorageTests", () => {
|
||||
name: "test empty course",
|
||||
assignmentGroups: [],
|
||||
daysOfWeek: [],
|
||||
startDate: "09/07/2024 23:59:00",
|
||||
endDate: "09/07/2024 23:59:00",
|
||||
startDate: "07/09/2024 23:59:00",
|
||||
endDate: "07/09/2024 23:59:00",
|
||||
defaultDueTime: { hour: 1, minute: 59 },
|
||||
},
|
||||
modules: [],
|
||||
@@ -44,8 +44,8 @@ describe("FileStorageTests", () => {
|
||||
assignmentGroups: [],
|
||||
name: "Test Course with settings",
|
||||
daysOfWeek: [DayOfWeek.Monday, DayOfWeek.Wednesday],
|
||||
startDate: "09/07/2024 23:59:00",
|
||||
endDate: "09/07/2024 23:59:00",
|
||||
startDate: "07/09/2024 23:59:00",
|
||||
endDate: "07/09/2024 23:59:00",
|
||||
defaultDueTime: { hour: 1, minute: 59 },
|
||||
},
|
||||
modules: [],
|
||||
@@ -67,8 +67,8 @@ describe("FileStorageTests", () => {
|
||||
name: "Test Course with modules",
|
||||
assignmentGroups: [],
|
||||
daysOfWeek: [],
|
||||
startDate: "09/07/2024 23:59:00",
|
||||
endDate: "09/07/2024 23:59:00",
|
||||
startDate: "07/09/2024 23:59:00",
|
||||
endDate: "07/09/2024 23:59:00",
|
||||
defaultDueTime: { hour: 1, minute: 59 },
|
||||
},
|
||||
modules: [
|
||||
@@ -97,8 +97,8 @@ describe("FileStorageTests", () => {
|
||||
name: "Test Course with modules and assignments",
|
||||
assignmentGroups: [],
|
||||
daysOfWeek: [],
|
||||
startDate: "09/07/2024 23:59:00",
|
||||
endDate: "09/07/2024 23:59:00",
|
||||
startDate: "07/09/2024 23:59:00",
|
||||
endDate: "07/09/2024 23:59:00",
|
||||
defaultDueTime: { hour: 1, minute: 59 },
|
||||
},
|
||||
modules: [
|
||||
@@ -108,8 +108,8 @@ describe("FileStorageTests", () => {
|
||||
{
|
||||
name: "test assignment",
|
||||
description: "here is the description",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
lockAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
lockAt: "07/09/2024 23:59:00",
|
||||
submissionTypes: [AssignmentSubmissionType.ONLINE_UPLOAD],
|
||||
localAssignmentGroupName: "Final Project",
|
||||
rubric: [
|
||||
@@ -143,8 +143,8 @@ describe("FileStorageTests", () => {
|
||||
name: "Test Course with modules and quiz",
|
||||
assignmentGroups: [],
|
||||
daysOfWeek: [],
|
||||
startDate: "09/07/2024 23:59:00",
|
||||
endDate: "09/07/2024 23:59:00",
|
||||
startDate: "07/09/2024 23:59:00",
|
||||
endDate: "07/09/2024 23:59:00",
|
||||
defaultDueTime: { hour: 1, minute: 59 },
|
||||
},
|
||||
modules: [
|
||||
@@ -155,8 +155,8 @@ describe("FileStorageTests", () => {
|
||||
{
|
||||
name: "Test Quiz",
|
||||
description: "quiz description",
|
||||
lockAt: "09/07/2024 12:05:00",
|
||||
dueAt: "09/07/2024 12:05:00",
|
||||
lockAt: "07/09/2024 12:05:00",
|
||||
dueAt: "07/09/2024 12:05:00",
|
||||
shuffleAnswers: true,
|
||||
oneQuestionAtATime: true,
|
||||
localAssignmentGroupName: "Assignments",
|
||||
@@ -196,8 +196,8 @@ describe("FileStorageTests", () => {
|
||||
name: "Test Course with lots of data",
|
||||
assignmentGroups: [],
|
||||
daysOfWeek: [DayOfWeek.Monday, DayOfWeek.Wednesday],
|
||||
startDate: "09/07/2024 23:59:00",
|
||||
endDate: "09/07/2024 23:59:00",
|
||||
startDate: "07/09/2024 23:59:00",
|
||||
endDate: "07/09/2024 23:59:00",
|
||||
defaultDueTime: { hour: 1, minute: 59 },
|
||||
},
|
||||
modules: [
|
||||
@@ -207,8 +207,8 @@ describe("FileStorageTests", () => {
|
||||
{
|
||||
name: "test assignment",
|
||||
description: "here is the description",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
lockAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
lockAt: "07/09/2024 23:59:00",
|
||||
submissionTypes: [AssignmentSubmissionType.ONLINE_UPLOAD],
|
||||
localAssignmentGroupName: "Final Project",
|
||||
rubric: [
|
||||
@@ -222,8 +222,8 @@ describe("FileStorageTests", () => {
|
||||
{
|
||||
name: "Test Quiz",
|
||||
description: "quiz description",
|
||||
lockAt: "09/07/2024 23:59:00",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
lockAt: "07/09/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
shuffleAnswers: true,
|
||||
oneQuestionAtATime: false,
|
||||
localAssignmentGroupName: "someId",
|
||||
@@ -261,8 +261,8 @@ describe("FileStorageTests", () => {
|
||||
name: "Test Course with page",
|
||||
assignmentGroups: [],
|
||||
daysOfWeek: [DayOfWeek.Monday, DayOfWeek.Wednesday],
|
||||
startDate: "09/07/2024 23:59:00",
|
||||
endDate: "09/07/2024 23:59:00",
|
||||
startDate: "07/09/2024 23:59:00",
|
||||
endDate: "07/09/2024 23:59:00",
|
||||
defaultDueTime: { hour: 1, minute: 59 },
|
||||
},
|
||||
modules: [
|
||||
@@ -273,7 +273,7 @@ describe("FileStorageTests", () => {
|
||||
pages: [
|
||||
{
|
||||
name: "test page persistence",
|
||||
dueAt: "09/07/2024 23:59:00",
|
||||
dueAt: "07/09/2024 23:59:00",
|
||||
text: "this is some\n## markdown\n",
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user