mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 22:59:28 +00:00
Added testTemplate test data
This commit is contained in:
@@ -38,6 +38,9 @@ const tableDetails = {
|
|||||||
hashPassword: true,
|
hashPassword: true,
|
||||||
id: 'uuid'
|
id: 'uuid'
|
||||||
},
|
},
|
||||||
|
testTemplate: {
|
||||||
|
id: 'uuid'
|
||||||
|
},
|
||||||
studentParentLink: {
|
studentParentLink: {
|
||||||
link: true
|
link: true
|
||||||
},
|
},
|
||||||
@@ -187,12 +190,37 @@ const data = {
|
|||||||
lastName: 'Vaughn',
|
lastName: 'Vaughn',
|
||||||
password: 'a3'
|
password: 'a3'
|
||||||
},
|
},
|
||||||
]
|
],
|
||||||
};
|
testTemplate: [
|
||||||
|
{
|
||||||
// Object to store the relationships between tables to be inserted into
|
name: 'Test Template 1',
|
||||||
// link tables
|
maxMark: 100,
|
||||||
const relationships = {
|
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: [
|
studentParentLink: [
|
||||||
{
|
{
|
||||||
lookups: {
|
lookups: {
|
||||||
|
|||||||
Reference in New Issue
Block a user