Skip to content

Commit

Permalink
Added startTime to test data
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrosx authored and Junjiequan committed Aug 13, 2024
1 parent 49acf3b commit 2db48d1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/TestData.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ const TestAccounts = Object.fromEntries(
RawTestAccounts.map((account) => [account.username, account]),
);

const DatasetDates = faker.date.betweens({
from: faker.date.recent({ days: 15 }).toISOString(),
to: faker.date.recent({ days: 10 }).toISOString(),
count: 2,
});

const TestData = {
EntryCreatedStatusCode: 201,
EntryValidStatusCode: 200,
Expand Down Expand Up @@ -117,6 +123,7 @@ const TestData = {

RawCorrect: {
principalInvestigator: "[email protected]",
startTime: "2011-09-14T05:29:11.000Z",
endTime: "2011-09-14T06:31:25.000Z",
creationLocation: "/SU/XQX/RAMJET",
dataFormat: "Upchuck pre 2017",
Expand Down Expand Up @@ -199,7 +206,8 @@ const TestData = {

RawCorrectRandom: {
principalInvestigator: faker.internet.email(),
endTime: faker.date.past().toISOString(),
startTime: DatasetDates[0],
endTime: DatasetDates[1],
creationLocation: faker.system.directoryPath(),
dataFormat: faker.lorem.words(3),
scientificMetadata: {
Expand Down Expand Up @@ -299,6 +307,7 @@ const TestData = {

RawWrong_2: {
principalInvestigator: "[email protected]",
startTime: "2011-09-15T02:13:52.000Z",
endTime: "2011-09-14T06:31:25.000Z",
creationLocation: "/SU/XQX/RAMJET",
dataFormat: "Upchuck pre 2017",
Expand Down

0 comments on commit 2db48d1

Please sign in to comment.