@@ -77,7 +77,7 @@ void main() {
77
77
});
78
78
79
79
test ('returns VideoIntroductionBlock' , () {
80
- const category = Category . technology;
80
+ const category = Category (id : ' technology' , name : 'Technology' ) ;
81
81
final block = VideoIntroductionBlock (
82
82
categoryId: category.id,
83
83
title: 'title' ,
@@ -87,7 +87,7 @@ void main() {
87
87
});
88
88
89
89
test ('returns ArticleIntroductionBlock' , () {
90
- const category = Category . technology;
90
+ const category = Category (id : ' technology' , name : 'Technology' ) ;
91
91
final block = ArticleIntroductionBlock (
92
92
categoryId: category.id,
93
93
author: 'author' ,
@@ -99,7 +99,7 @@ void main() {
99
99
});
100
100
101
101
test ('returns PostLargeBlock' , () {
102
- const category = Category . technology;
102
+ const category = Category (id : ' technology' , name : 'Technology' ) ;
103
103
final block = PostLargeBlock (
104
104
id: 'id' ,
105
105
categoryId: category.id,
@@ -113,7 +113,7 @@ void main() {
113
113
});
114
114
115
115
test ('returns PostMediumBlock' , () {
116
- const category = Category . sports;
116
+ const category = Category (id : ' sports' , name : 'Sports' ) ;
117
117
final block = PostMediumBlock (
118
118
id: 'id' ,
119
119
categoryId: category.id,
@@ -127,7 +127,7 @@ void main() {
127
127
});
128
128
129
129
test ('returns PostSmallBlock' , () {
130
- const category = Category . health;
130
+ const category = Category (id : ' health' , name : 'Health' ) ;
131
131
final block = PostSmallBlock (
132
132
id: 'id' ,
133
133
categoryId: category.id,
@@ -141,7 +141,7 @@ void main() {
141
141
});
142
142
143
143
test ('returns PostGridGroupBlock' , () {
144
- const category = Category . science;
144
+ const category = Category (id : ' science' , name : 'Science' ) ;
145
145
final block = PostGridGroupBlock (
146
146
categoryId: category.id,
147
147
tiles: [
@@ -160,7 +160,7 @@ void main() {
160
160
});
161
161
162
162
test ('returns PostGridTileBlock' , () {
163
- const category = Category . science;
163
+ const category = Category (id : ' science' , name : 'Science' ) ;
164
164
final block = PostGridTileBlock (
165
165
id: 'id' ,
166
166
categoryId: category.id,
@@ -221,7 +221,7 @@ void main() {
221
221
});
222
222
223
223
test ('returns TrendingStoryBlock' , () {
224
- const category = Category . health;
224
+ const category = Category (id : ' health' , name : 'Health' ) ;
225
225
final content = PostSmallBlock (
226
226
id: 'id' ,
227
227
categoryId: category.id,
0 commit comments