Skip to content

Commit

Permalink
chore: some more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
achettyiitr committed Dec 28, 2023
1 parent 2901805 commit f1b64cd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/__tests__/warehouse.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1152,8 +1152,9 @@ describe("validTimestamp", () => {
}
]

for (const testCase of testCases) {
it(`should return ${testCase.expected} for ${JSON.stringify(testCase.input)}`, () => {
for (let i = 0; i < testCases.length; i++) {
const testCase = testCases[i];
it(`should return ${testCase.expected} for testcase ${i + 1}`, () => {
expect(validTimestamp(testCase.input)).toEqual(testCase.expected);
});
}
Expand Down Expand Up @@ -1185,8 +1186,9 @@ describe("isBlank", () => {
},
]

for (const testCase of testCases) {
it(`should return ${testCase.expected} for ${JSON.stringify(testCase.input)}`, () => {
for (let i = 0; i < testCases.length; i++) {
const testCase = testCases[i];
it(`should return ${testCase.expected} for testcase ${i + 1}`, () => {
expect(isBlank(testCase.input)).toEqual(testCase.expected);
});
}
Expand Down

0 comments on commit f1b64cd

Please sign in to comment.