@@ -12,7 +12,7 @@ void main() {
1212 group ('MviTodosList' , () {
1313 group ('View' , () {
1414 test ('should clean up after itself' , () {
15- final view = TodosListView ();
15+ final view = TodoListView ();
1616
1717 view.tearDown ();
1818
@@ -28,20 +28,20 @@ void main() {
2828 group ('Presenter' , () {
2929 test ('should have an initial state' , () {
3030 final interactor = MockTodoListInteractor ();
31- final view = TodosListView ();
31+ final view = TodoListView ();
3232
33- final presenter = TodosListPresenter (
33+ final presenter = TodoListPresenter (
3434 view: view,
3535 todosInteractor: interactor,
3636 userInteractor: MockUserInteractor (),
3737 );
3838
39- expect (presenter.latest, TodosListModel .initial ());
39+ expect (presenter.latest, TodoListModel .initial ());
4040 });
4141
4242 test ('should show all todos by default' , () {
4343 final interactor = MockTodoListInteractor ();
44- final view = TodosListView ();
44+ final view = TodoListView ();
4545 final todos = [Todo ('Hi' )];
4646
4747 when (interactor.todos).thenAnswer ((_) => Stream .fromIterable ([todos]));
@@ -52,7 +52,7 @@ void main() {
5252 interactor.hasCompletedTodos,
5353 ).thenAnswer ((_) => Stream .fromIterable ([false ]));
5454
55- final presenter = TodosListPresenter (
55+ final presenter = TodoListPresenter (
5656 view: view,
5757 todosInteractor: interactor,
5858 userInteractor: MockUserInteractor (),
@@ -68,7 +68,7 @@ void main() {
6868
6969 test ('should display completed todos' , () {
7070 final interactor = MockTodoListInteractor ();
71- final view = TodosListView ();
71+ final view = TodoListView ();
7272 final todos = [
7373 Todo ('Hallo' , complete: false ),
7474 Todo ('Friend' , complete: true ),
@@ -82,7 +82,7 @@ void main() {
8282 interactor.hasCompletedTodos,
8383 ).thenAnswer ((_) => Stream .fromIterable ([false ]));
8484
85- final presenter = TodosListPresenter (
85+ final presenter = TodoListPresenter (
8686 view: view,
8787 todosInteractor: interactor,
8888 userInteractor: MockUserInteractor (),
@@ -94,7 +94,7 @@ void main() {
9494
9595 test ('should display active todos' , () {
9696 final interactor = MockTodoListInteractor ();
97- final view = TodosListView ();
97+ final view = TodoListView ();
9898 final todos = [
9999 Todo ('Hallo' , complete: false ),
100100 Todo ('Friend' , complete: true ),
@@ -108,7 +108,7 @@ void main() {
108108 interactor.hasCompletedTodos,
109109 ).thenAnswer ((_) => Stream .fromIterable ([false ]));
110110
111- final presenter = TodosListPresenter (
111+ final presenter = TodoListPresenter (
112112 view: view,
113113 todosInteractor: interactor,
114114 userInteractor: MockUserInteractor (),
@@ -120,7 +120,7 @@ void main() {
120120
121121 test ('allComplete should stream state of interactor' , () {
122122 final interactor = MockTodoListInteractor ();
123- final view = TodosListView ();
123+ final view = TodoListView ();
124124 final todos = [
125125 Todo ('Hallo' , complete: false ),
126126 Todo ('Friend' , complete: true ),
@@ -134,7 +134,7 @@ void main() {
134134 interactor.hasCompletedTodos,
135135 ).thenAnswer ((_) => Stream .fromIterable ([false ]));
136136
137- final presenter = TodosListPresenter (
137+ final presenter = TodoListPresenter (
138138 view: view,
139139 todosInteractor: interactor,
140140 userInteractor: MockUserInteractor (),
@@ -145,7 +145,7 @@ void main() {
145145
146146 test ('hasCompletedTodos should reflect the interactor' , () {
147147 final interactor = MockTodoListInteractor ();
148- final view = TodosListView ();
148+ final view = TodoListView ();
149149 final todos = [
150150 Todo ('Hallo' , complete: false ),
151151 Todo ('Friend' , complete: true ),
@@ -159,7 +159,7 @@ void main() {
159159 interactor.hasCompletedTodos,
160160 ).thenAnswer ((_) => Stream .fromIterable ([true ]));
161161
162- final presenter = TodosListPresenter (
162+ final presenter = TodoListPresenter (
163163 view: view,
164164 todosInteractor: interactor,
165165 userInteractor: MockUserInteractor (),
@@ -170,7 +170,7 @@ void main() {
170170
171171 test ('should add todos to the interactor' , () async {
172172 final interactor = MockTodoListInteractor ();
173- final view = TodosListView ();
173+ final view = TodoListView ();
174174 final todos = [
175175 Todo ('Hallo' , complete: false ),
176176 Todo ('Friend' , complete: true ),
@@ -184,7 +184,7 @@ void main() {
184184 interactor.hasCompletedTodos,
185185 ).thenAnswer ((_) => Stream .fromIterable ([true ]));
186186
187- final presenter = TodosListPresenter (
187+ final presenter = TodoListPresenter (
188188 view: view,
189189 todosInteractor: interactor,
190190 userInteractor: MockUserInteractor (),
@@ -197,7 +197,7 @@ void main() {
197197
198198 test ('should send deletions to the interactor' , () async {
199199 final interactor = MockTodoListInteractor ();
200- final view = TodosListView ();
200+ final view = TodoListView ();
201201 final todos = [
202202 Todo ('Hallo' , complete: false ),
203203 Todo ('Friend' , complete: true ),
@@ -211,7 +211,7 @@ void main() {
211211 interactor.hasCompletedTodos,
212212 ).thenAnswer ((_) => Stream .fromIterable ([true ]));
213213
214- final presenter = TodosListPresenter (
214+ final presenter = TodoListPresenter (
215215 view: view,
216216 todosInteractor: interactor,
217217 userInteractor: MockUserInteractor (),
@@ -224,7 +224,7 @@ void main() {
224224
225225 test ('should remove completed todos from the interactor' , () async {
226226 final interactor = MockTodoListInteractor ();
227- final view = TodosListView ();
227+ final view = TodoListView ();
228228 final todos = [
229229 Todo ('Hallo' , complete: false ),
230230 Todo ('Friend' , complete: true ),
@@ -238,7 +238,7 @@ void main() {
238238 interactor.hasCompletedTodos,
239239 ).thenAnswer ((_) => Stream .fromIterable ([true ]));
240240
241- final presenter = TodosListPresenter (
241+ final presenter = TodoListPresenter (
242242 view: view,
243243 todosInteractor: interactor,
244244 userInteractor: MockUserInteractor (),
@@ -251,7 +251,7 @@ void main() {
251251
252252 test ('should toggle complete' , () async {
253253 final interactor = MockTodoListInteractor ();
254- final view = TodosListView ();
254+ final view = TodoListView ();
255255 final todos = [
256256 Todo ('Hallo' , complete: false ),
257257 Todo ('Friend' , complete: true ),
@@ -265,7 +265,7 @@ void main() {
265265 interactor.hasCompletedTodos,
266266 ).thenAnswer ((_) => Stream .fromIterable ([true ]));
267267
268- final presenter = TodosListPresenter (
268+ final presenter = TodoListPresenter (
269269 view: view,
270270 todosInteractor: interactor,
271271 userInteractor: MockUserInteractor (),
@@ -302,7 +302,7 @@ class ModelWith extends Matcher {
302302
303303 @override
304304 bool matches (dynamic item, Map <dynamic , dynamic > matchState) {
305- if (item is TodosListModel ) {
305+ if (item is TodoListModel ) {
306306 bool match = true ;
307307 if (visibleTodos != null ) {
308308 match = _listsEqual (visibleTodos! , item.visibleTodos);
0 commit comments