From a4156615d0a4898da2530b5d722196dda6c39f73 Mon Sep 17 00:00:00 2001 From: matt Date: Thu, 24 Feb 2022 23:17:06 +0000 Subject: [PATCH] Added testTemplate test data --- utility/db/dbTestData.js | 40 ++++++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/utility/db/dbTestData.js b/utility/db/dbTestData.js index 6773d6a..d347c20 100644 --- a/utility/db/dbTestData.js +++ b/utility/db/dbTestData.js @@ -38,6 +38,9 @@ const tableDetails = { hashPassword: true, id: 'uuid' }, + testTemplate: { + id: 'uuid' + }, studentParentLink: { link: true }, @@ -187,12 +190,37 @@ const data = { lastName: 'Vaughn', password: 'a3' }, - ] -}; - -// Object to store the relationships between tables to be inserted into -// link tables -const relationships = { + ], + testTemplate: [ + { + name: 'Test Template 1', + maxMark: 100, + lookups: { + accountId: 1 + } + }, + { + name: 'Test Template 2', + maxMark: 50, + lookups: { + accountId: 2 + } + }, + { + name: 'Test Template 3', + maxMark: 74, + lookups: { + accountId: 2 + } + }, + { + name: 'Test Template 4', + maxMark: 320, + lookups: { + accountId: 3 + } + } + ], studentParentLink: [ { lookups: {