From b624e63e48f9ab4bbf0b542acbe504d67ac54a47 Mon Sep 17 00:00:00 2001 From: matt Date: Thu, 24 Feb 2022 23:17:17 +0000 Subject: [PATCH] Added test test data --- utility/db/dbTestData.js | 89 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/utility/db/dbTestData.js b/utility/db/dbTestData.js index d347c20..c89e576 100644 --- a/utility/db/dbTestData.js +++ b/utility/db/dbTestData.js @@ -41,6 +41,9 @@ const tableDetails = { testTemplate: { id: 'uuid' }, + test: { + id: 'uuid' + }, studentParentLink: { link: true }, @@ -221,6 +224,92 @@ const data = { } } ], + test: [ + { + testDate: new mySQLDate().alterDays(-1), + lookups: { + classId: 1, + testTemplateId: 1 + } + }, + { + testDate: new mySQLDate().alterDays(1), + lookups: { + classId: 2, + testTemplateId: 1 + } + }, + { + testDate: new mySQLDate().alterDays(30), + lookups: { + classId: 4, + testTemplateId: 1 + } + }, + { + testDate: new mySQLDate().alterDays(-10), + lookups: { + classId: 1, + testTemplateId: 4 + } + }, + { + testDate: new mySQLDate().alterDays(-100), + lookups: { + classId: 1, + testTemplateId: 2 + } + }, + { + testDate: new mySQLDate().alterDays(50), + lookups: { + classId: 4, + testTemplateId: 2 + } + }, + { + testDate: new mySQLDate().alterDays(10), + lookups: { + classId: 4, + testTemplateId: 3 + } + }, + { + testDate: new mySQLDate().alterDays(-15), + lookups: { + classId: 3, + testTemplateId: 3 + } + }, + { + testDate: new mySQLDate().alterDays(-108), + lookups: { + classId: 3, + testTemplateId: 3 + } + }, + { + testDate: new mySQLDate().alterDays(-4), + lookups: { + classId: 2, + testTemplateId: 4 + } + }, + { + testDate: new mySQLDate().alterDays(-8), + lookups: { + classId: 3, + testTemplateId: 4 + } + }, + { + testDate: new mySQLDate().alterDays(1), + lookups: { + classId: 3, + testTemplateId: 4 + } + }, + ], studentParentLink: [ { lookups: {