@@ -27,6 +27,23 @@ void main() {
2727 late PubUpdater pubUpdater;
2828 late MasonCommandRunner commandRunner;
2929
30+ setUpAll (() async {
31+ registerFallbackValue (Object ());
32+ logger = _MockLogger ();
33+ pubUpdater = _MockPubUpdater ();
34+
35+ when (
36+ () => logger.prompt (any (), defaultValue: any (named: 'defaultValue' )),
37+ ).thenReturn ('' );
38+ when (() => logger.progress (any ())).thenReturn (_MockProgress ());
39+ when (
40+ () => pubUpdater.getLatestVersion (any ()),
41+ ).thenAnswer ((_) async => packageVersion);
42+ await MasonCommandRunner (logger: logger, pubUpdater: pubUpdater).run (
43+ ['cache' , 'clear' ],
44+ );
45+ });
46+
3047 setUp (() {
3148 logger = _MockLogger ();
3249 pubUpdater = _MockPubUpdater ();
@@ -55,7 +72,7 @@ bricks:
5572 git:
5673 url: https://github.com/felangel/mason
5774 path: bricks/hooks
58- ref: 997bc878c93534fad17d965be7cafe948a1dbb53
75+ ref: c744e19c23243453f568b539bb122767e6542929
5976 simple:
6077 path: ../../../../../bricks/simple
6178 todos:
@@ -64,7 +81,7 @@ bricks:
6481 git:
6582 url: https://github.com/felangel/mason
6683 path: bricks/widget
67- ref: 997bc878c93534fad17d965be7cafe948a1dbb53
84+ ref: c744e19c23243453f568b539bb122767e6542929
6885''' ,
6986 );
7087 });
@@ -114,7 +131,7 @@ bricks:
114131 path.join (
115132 BricksJson .rootDir.path,
116133 'git' ,
117- '''mason_aHR0cHM6Ly9naXRodWIuY29tL2ZlbGFuZ2VsL21hc29u_997bc878c93534fad17d965be7cafe948a1dbb53 ''' ,
134+ '''mason_aHR0cHM6Ly9naXRodWIuY29tL2ZlbGFuZ2VsL21hc29u_c744e19c23243453f568b539bb122767e6542929 ''' ,
118135 'bricks' ,
119136 'hooks' ,
120137 ),
@@ -129,7 +146,7 @@ bricks:
129146 path.join (
130147 BricksJson .rootDir.path,
131148 'git' ,
132- '''mason_aHR0cHM6Ly9naXRodWIuY29tL2ZlbGFuZ2VsL21hc29u_997bc878c93534fad17d965be7cafe948a1dbb53 ''' ,
149+ '''mason_aHR0cHM6Ly9naXRodWIuY29tL2ZlbGFuZ2VsL21hc29u_c744e19c23243453f568b539bb122767e6542929 ''' ,
133150 'bricks' ,
134151 'widget' ,
135152 ),
@@ -161,7 +178,7 @@ bricks:
161178 'git' : {
162179 'url' : 'https://github.com/felangel/mason' ,
163180 'path' : 'bricks/hooks' ,
164- 'ref' : '997bc878c93534fad17d965be7cafe948a1dbb53 ' ,
181+ 'ref' : 'c744e19c23243453f568b539bb122767e6542929 ' ,
165182 },
166183 },
167184 'simple' : {'path' : simplePath},
@@ -170,7 +187,7 @@ bricks:
170187 'git' : {
171188 'url' : 'https://github.com/felangel/mason' ,
172189 'path' : 'bricks/widget' ,
173- 'ref' : '997bc878c93534fad17d965be7cafe948a1dbb53 ' ,
190+ 'ref' : 'c744e19c23243453f568b539bb122767e6542929 ' ,
174191 },
175192 },
176193 },
@@ -217,7 +234,7 @@ bricks:
217234 File (path.join (Directory .current.path, 'mason.yaml' )).writeAsStringSync (
218235 '''
219236bricks:
220- hello : ^0.1.0-dev
237+ greeting : ^0.1.0-dev
221238 widget:
222239 git:
223240 url: https://github.com/felangel/mason
0 commit comments