Skip to content

Commit 29af55f

Browse files
committed
updates the tests to handle more test cases as well as update the current tests
1 parent dd3a48f commit 29af55f

File tree

3 files changed

+420
-204
lines changed

3 files changed

+420
-204
lines changed

test/fixtures/progress/progresses.js

Lines changed: 19 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@ const standupProgressDay1 = {
55
blockers: "Waiting for database access credentials",
66
};
77

8-
const standupProgressDay2 = {
9-
type: "user",
10-
completed: "Completed API integration for user authentication",
11-
planned: "Optimize database queries for improved performance",
12-
blockers: "None",
13-
};
14-
158
const incompleteProgress = [
169
{
1710
missingField: "type",
@@ -48,17 +41,15 @@ const incompleteProgress = [
4841
];
4942

5043
const stubbedModelProgressData = (userId, createdAt, date) => {
51-
return [
52-
{
53-
userId,
54-
createdAt,
55-
date,
56-
type: "user",
57-
completed: "Implemented caching mechanism for frequent API requests",
58-
planned: "Refactor code to follow coding best practices",
59-
blockers: "Waiting for feedback from the code review",
60-
},
61-
];
44+
return {
45+
userId,
46+
createdAt,
47+
date,
48+
type: "user",
49+
completed: "Implemented caching mechanism for frequent API requests",
50+
planned: "Refactor code to follow coding best practices",
51+
blockers: "Waiting for feedback from the code review",
52+
};
6253
};
6354

6455
const taskProgressDay1 = (taskId) => {
@@ -71,16 +62,6 @@ const taskProgressDay1 = (taskId) => {
7162
};
7263
};
7364

74-
const taskProgressDay2 = (taskId) => {
75-
return {
76-
taskId,
77-
type: "task",
78-
completed: "Completed API integration for user authentication",
79-
planned: "Optimize database queries for improved performance",
80-
blockers: "None",
81-
};
82-
};
83-
8465
const incompleteTaskProgress = (taskId) => [
8566
{
8667
missingField: "type",
@@ -130,27 +111,23 @@ const incompleteTaskProgress = (taskId) => [
130111
];
131112

132113
const stubbedModelTaskProgressData = (userId, taskId, createdAt, date) => {
133-
return [
134-
{
135-
userId,
136-
taskId,
137-
createdAt,
138-
date,
139-
type: "task",
140-
completed: "Implemented caching mechanism for frequent API requests",
141-
planned: "Refactor code to follow coding best practices",
142-
blockers: "Waiting for feedback from the code review",
143-
},
144-
];
114+
return {
115+
userId,
116+
taskId,
117+
createdAt,
118+
date,
119+
type: "task",
120+
completed: "Implemented caching mechanism for frequent API requests",
121+
planned: "Refactor code to follow coding best practices",
122+
blockers: "Waiting for feedback from the code review",
123+
};
145124
};
146125

147126
module.exports = {
148127
standupProgressDay1,
149-
standupProgressDay2,
150128
incompleteProgress,
151129
stubbedModelProgressData,
152130
taskProgressDay1,
153-
taskProgressDay2,
154131
incompleteTaskProgress,
155132
stubbedModelTaskProgressData,
156133
};

0 commit comments

Comments
 (0)