File tree Expand file tree Collapse file tree 1 file changed +36
-36
lines changed
Expand file tree Collapse file tree 1 file changed +36
-36
lines changed Original file line number Diff line number Diff line change @@ -58,18 +58,18 @@ void main() {
5858
5959 test ('toJson converts Tasks object to JSON' , () {
6060 final task = Tasks (
61- id: 1 ,
62- description: 'Task 1' ,
63- project: 'Project 1' ,
64- status: 'pending' ,
65- uuid: '123' ,
66- urgency: 5.0 ,
67- priority: 'H' ,
68- due: '2024-12-31' ,
69- end: null ,
70- entry: '2024-01-01' ,
71- modified: '2024-11-01' ,
72- );
61+ id: 1 ,
62+ description: 'Task 1' ,
63+ project: 'Project 1' ,
64+ status: 'pending' ,
65+ uuid: '123' ,
66+ urgency: 5.0 ,
67+ priority: 'H' ,
68+ due: '2024-12-31' ,
69+ end: null ,
70+ entry: '2024-01-01' ,
71+ modified: '2024-11-01' ,
72+ tags : [ 't1' ] );
7373
7474 final json = task.toJson ();
7575
@@ -118,18 +118,18 @@ void main() {
118118
119119 test ('insertTask adds a task to the database' , () async {
120120 final task = Tasks (
121- id: 1 ,
122- description: 'Task 1' ,
123- project: 'Project 1' ,
124- status: 'pending' ,
125- uuid: '123' ,
126- urgency: 5.0 ,
127- priority: 'H' ,
128- due: '2024-12-31' ,
129- end: null ,
130- entry: '2024-01-01' ,
131- modified: '2024-11-01' ,
132- );
121+ id: 1 ,
122+ description: 'Task 1' ,
123+ project: 'Project 1' ,
124+ status: 'pending' ,
125+ uuid: '123' ,
126+ urgency: 5.0 ,
127+ priority: 'H' ,
128+ due: '2024-12-31' ,
129+ end: null ,
130+ entry: '2024-01-01' ,
131+ modified: '2024-11-01' ,
132+ tags : [ 't1' ] );
133133
134134 await taskDatabase.insertTask (task);
135135
@@ -141,18 +141,18 @@ void main() {
141141
142142 test ('deleteAllTasksInDB removes all tasks' , () async {
143143 final task = Tasks (
144- id: 1 ,
145- description: 'Task 1' ,
146- project: 'Project 1' ,
147- status: 'pending' ,
148- uuid: '123' ,
149- urgency: 5.0 ,
150- priority: 'H' ,
151- due: '2024-12-31' ,
152- end: null ,
153- entry: '2024-01-01' ,
154- modified: '2024-11-01' ,
155- );
144+ id: 1 ,
145+ description: 'Task 1' ,
146+ project: 'Project 1' ,
147+ status: 'pending' ,
148+ uuid: '123' ,
149+ urgency: 5.0 ,
150+ priority: 'H' ,
151+ due: '2024-12-31' ,
152+ end: null ,
153+ entry: '2024-01-01' ,
154+ modified: '2024-11-01' ,
155+ tags : [ 't1' ] );
156156
157157 await taskDatabase.insertTask (task);
158158 await taskDatabase.deleteAllTasksInDB ();
You can’t perform that action at this time.
0 commit comments