@@ -140,7 +140,8 @@ main() {
140140 {
141141 'a|lib/a.txt' : 'a' ,
142142 'a|lib/a.txt.copy' : 'a' ,
143- 'a|.build/asset_graph.json' : JSON .encode (emptyGraph.serialize ()),
143+ 'a|$assetGraphPath ' :
144+ JSON .encode (emptyGraph.serialize ()),
144145 },
145146 status: BuildStatus .Failure ,
146147 exceptionMatcher: invalidOutputException);
@@ -153,7 +154,7 @@ main() {
153154 outputs: {'a|web/a.txt.copy' : 'a' , 'a|lib/b.txt.copy' : 'b' },
154155 writer: writer);
155156
156- var graphId = makeAssetId ('a|.build/asset_graph.json ' );
157+ var graphId = makeAssetId ('a|$ assetGraphPath ' );
157158 expect (writer.assets, contains (graphId));
158159 var cachedGraph =
159160 new AssetGraph .deserialize (JSON .decode (writer.assets[graphId].value));
@@ -194,7 +195,7 @@ main() {
194195 await testPhases (copyAPhaseGroup, inputs, outputs: outputs, writer: writer);
195196
196197 // Delete the `asset_graph.json` file!
197- var outputId = makeAssetId ('a|.build/asset_graph.json ' );
198+ var outputId = makeAssetId ('a|$ assetGraphPath ' );
198199 await writer.delete (outputId);
199200
200201 // Second run, should have no extra outputs.
@@ -223,7 +224,7 @@ main() {
223224 'a|web/a.txt' : 'a' ,
224225 'a|lib/b.txt.copy' : 'b' ,
225226 'a|lib/c.txt' : 'c' ,
226- 'a|.build/asset_graph.json ' : JSON .encode (graph.serialize ()),
227+ 'a|$ assetGraphPath ' : JSON .encode (graph.serialize ()),
227228 }, outputs: {
228229 'a|web/a.txt.copy' : 'a' ,
229230 'a|lib/c.txt.copy' : 'c' ,
@@ -268,7 +269,8 @@ main() {
268269 'a|lib/a.txt.copy.clone' : 'a' ,
269270 'a|lib/b.txt.copy' : 'b' ,
270271 'a|lib/b.txt.copy.clone' : 'b' ,
271- 'a|.build/asset_graph.json' : JSON .encode (graph.serialize ()),
272+ 'a|$assetGraphPath ' :
273+ JSON .encode (graph.serialize ()),
272274 },
273275 outputs: {'a|lib/a.txt.copy' : 'b' , 'a|lib/a.txt.copy.clone' : 'b' ,},
274276 writer: writer);
@@ -297,14 +299,15 @@ main() {
297299 {
298300 'a|lib/a.txt.copy' : 'a' ,
299301 'a|lib/a.txt.copy.clone' : 'a' ,
300- 'a|.build/asset_graph.json' : JSON .encode (graph.serialize ()),
302+ 'a|$assetGraphPath ' :
303+ JSON .encode (graph.serialize ()),
301304 },
302305 outputs: {},
303306 writer: writer);
304307
305308 /// Should be deleted using the writer, and removed from the new graph.
306- var newGraph = new AssetGraph .deserialize (JSON .decode (
307- writer .assets[makeAssetId ('a|.build/asset_graph.json ' )].value));
309+ var newGraph = new AssetGraph .deserialize (JSON .decode (writer
310+ .assets[makeAssetId ('a|$ assetGraphPath ' )].value));
308311 expect (newGraph.contains (aNode.id), isFalse);
309312 expect (newGraph.contains (aCopyNode.id), isFalse);
310313 expect (newGraph.contains (aCloneNode.id), isFalse);
@@ -331,7 +334,7 @@ main() {
331334 await testPhases (copyAPhaseGroup, {
332335 'a|web/a.txt' : 'a' ,
333336 'a|web/a.txt.copy' : 'a' ,
334- 'a|.build/asset_graph.json ' : JSON .encode (graph.serialize ()),
337+ 'a|$ assetGraphPath ' : JSON .encode (graph.serialize ()),
335338 }, outputs: {
336339 'a|web/a.txt.copy' : 'a' ,
337340 });
0 commit comments