@@ -88,7 +88,7 @@ void main() {
8888 test ('should return created item on success' , () async {
8989 final mockResult = MockResult ();
9090 final mockResultRow = MockResultRow ();
91- when (() => mockResultRow.toColumnMap () ).thenReturn (testModelJson);
91+ when (mockResultRow.toColumnMap).thenReturn (testModelJson);
9292 when (() => mockResult.first).thenReturn (mockResultRow);
9393 when (
9494 () => mockConnection.execute (
@@ -138,7 +138,7 @@ void main() {
138138 test ('should add userId to query when provided' , () async {
139139 final mockResult = MockResult ();
140140 final mockResultRow = MockResultRow ();
141- when (() => mockResultRow.toColumnMap () ).thenReturn (testModelJson);
141+ when (mockResultRow.toColumnMap).thenReturn (testModelJson);
142142 when (() => mockResult.first).thenReturn (mockResultRow);
143143 when (
144144 () => mockConnection.execute (
@@ -166,7 +166,7 @@ void main() {
166166 test ('should return item when found' , () async {
167167 final mockResult = MockResult ();
168168 final mockResultRow = MockResultRow ();
169- when (() => mockResultRow.toColumnMap () ).thenReturn (testModelJson);
169+ when (mockResultRow.toColumnMap).thenReturn (testModelJson);
170170 when (() => mockResult.isEmpty).thenReturn (false );
171171 when (() => mockResult.first).thenReturn (mockResultRow);
172172 when (
@@ -196,7 +196,7 @@ void main() {
196196 test ('should add userId to query when provided' , () async {
197197 final mockResult = MockResult ();
198198 final mockResultRow = MockResultRow ();
199- when (() => mockResultRow.toColumnMap () ).thenReturn (testModelJson);
199+ when (mockResultRow.toColumnMap).thenReturn (testModelJson);
200200 when (() => mockResult.isEmpty).thenReturn (false );
201201 when (() => mockResult.first).thenReturn (mockResultRow);
202202 when (
@@ -243,7 +243,7 @@ void main() {
243243 test ('should return updated item on success' , () async {
244244 final mockResult = MockResult ();
245245 final mockResultRow = MockResultRow ();
246- when (() => mockResultRow.toColumnMap () ).thenReturn (testModelJson);
246+ when (mockResultRow.toColumnMap).thenReturn (testModelJson);
247247 when (() => mockResult.isEmpty).thenReturn (false );
248248 when (() => mockResult.first).thenReturn (mockResultRow);
249249 when (
@@ -273,7 +273,7 @@ void main() {
273273 test ('should add userId to query when provided' , () async {
274274 final mockResult = MockResult ();
275275 final mockResultRow = MockResultRow ();
276- when (() => mockResultRow.toColumnMap () ).thenReturn (testModelJson);
276+ when (mockResultRow.toColumnMap).thenReturn (testModelJson);
277277 when (() => mockResult.isEmpty).thenReturn (false );
278278 when (() => mockResult.first).thenReturn (mockResultRow);
279279 when (
@@ -319,7 +319,7 @@ void main() {
319319 test ('should call read when update data is empty' , () async {
320320 final mockResult = MockResult ();
321321 final mockResultRow = MockResultRow ();
322- when (() => mockResultRow.toColumnMap () ).thenReturn (testModelJson);
322+ when (mockResultRow.toColumnMap).thenReturn (testModelJson);
323323 when (() => mockResult.isEmpty).thenReturn (false );
324324 when (() => mockResult.first).thenReturn (mockResultRow);
325325 when (
@@ -330,7 +330,7 @@ void main() {
330330 ).thenAnswer ((_) async => mockResult);
331331
332332 final mockEmptyModel = MockTestModel ();
333- when (() => mockEmptyModel.toJson () ).thenReturn ({'id' : '1' });
333+ when (mockEmptyModel.toJson).thenReturn ({'id' : '1' });
334334
335335 await sut.update (id: '1' , item: mockEmptyModel);
336336
@@ -527,7 +527,7 @@ void main() {
527527 'should return paginated response with hasMore true when limit is exceeded' ,
528528 () async {
529529 final mockResultRow = MockResultRow ();
530- when (() => mockResultRow.toColumnMap () ).thenReturn (testModelJson);
530+ when (mockResultRow.toColumnMap).thenReturn (testModelJson);
531531
532532 // Create a real Result object containing mock rows
533533 final mockResult = Result (
0 commit comments