File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
tests/Feature/Generators/Statements Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ private function outputStyle($action)
96
96
{
97
97
if ($ action === 'deleted ' ) {
98
98
return 'error ' ;
99
- } elseif ($ action === 'updated ' ) {
99
+ } elseif ($ action === 'updated ' || $ action === ' skipped ' ) {
100
100
return 'comment ' ;
101
101
}
102
102
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public function output(Tree $tree): array
38
38
$ path = $ this ->getPath ($ statement ->view ());
39
39
40
40
if ($ this ->filesystem ->exists ($ path )) {
41
- // TODO: mark skipped...
41
+ $ output [ ' skipped ' ][] = $ path ;
42
42
continue ;
43
43
}
44
44
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ public function output_writes_views_for_render_statements()
107
107
/**
108
108
* @test
109
109
*/
110
- public function it_only_outputs_new_views ()
110
+ public function it_outputs_skipped_views ()
111
111
{
112
112
$ this ->filesystem ->expects ('stub ' )
113
113
->with ('view.stub ' )
@@ -126,6 +126,12 @@ public function it_only_outputs_new_views()
126
126
$ tokens = $ this ->blueprint ->parse ($ this ->fixture ('drafts/render-statements.yaml ' ));
127
127
$ tree = $ this ->blueprint ->analyze ($ tokens );
128
128
129
- $ this ->assertEquals ([], $ this ->subject ->output ($ tree ));
129
+ $ this ->assertEquals ([
130
+ "skipped " => [
131
+ "resources/views/user/index.blade.php " ,
132
+ "resources/views/user/create.blade.php " ,
133
+ "resources/views/post/show.blade.php " ,
134
+ ],
135
+ ], $ this ->subject ->output ($ tree ));
130
136
}
131
137
}
You can’t perform that action at this time.
0 commit comments