@@ -96,7 +96,7 @@ func TestShouldEditDashboard(t *testing.T) {
9696 "scope": "privateDashboard"
9797 }` ),
9898 }
99- cli .Deps . Editor = mockEditor
99+ cli .Editor = mockEditor
100100
101101 di .ExecuteCommandWithContextUnsafe (& cli .Deps , cmd , "--id" , "1234" )
102102
@@ -136,7 +136,7 @@ func TestShouldEditDashboardWithIdentifier(t *testing.T) {
136136 "description": "Updated via identifier"
137137 }` ),
138138 }
139- cli .Deps . Editor = mockEditor
139+ cli .Editor = mockEditor
140140
141141 di .ExecuteCommandWithContextUnsafe (& cli .Deps , cmd , "--identifier" , "urn:custom:dashboard:edit-test" )
142142
@@ -153,7 +153,7 @@ func TestEditDashboardNoChanges(t *testing.T) {
153153
154154 // Custom editor that returns exactly the same content as input
155155 noChangeEditor := & NoChangeEditor {}
156- cli .Deps . Editor = noChangeEditor
156+ cli .Editor = noChangeEditor
157157
158158 di .ExecuteCommandWithContextUnsafe (& cli .Deps , cmd , "--id" , "1234" )
159159
@@ -186,7 +186,7 @@ func TestEditDashboardWithJsonOutput(t *testing.T) {
186186 "description": "Testing JSON output"
187187 }` ),
188188 }
189- cli .Deps . Editor = mockEditor
189+ cli .Editor = mockEditor
190190
191191 di .ExecuteCommandWithContextUnsafe (& cli .Deps , cmd , "--id" , "1234" , "--output" , "json" )
192192
@@ -204,7 +204,7 @@ func TestEditDashboardNoChangesJsonOutput(t *testing.T) {
204204
205205 // Use NoChangeEditor that returns exactly the same content
206206 noChangeEditor := & NoChangeEditor {}
207- cli .Deps . Editor = noChangeEditor
207+ cli .Editor = noChangeEditor
208208
209209 di .ExecuteCommandWithContextUnsafe (& cli .Deps , cmd , "--id" , "1234" , "--output" , "json" )
210210
@@ -223,7 +223,7 @@ func TestEditDashboardInvalidJson(t *testing.T) {
223223 mockEditor := & MockEditor {
224224 Content : []byte (`{"invalid": json syntax}` ),
225225 }
226- cli .Deps . Editor = mockEditor
226+ cli .Editor = mockEditor
227227
228228 _ , err := di .ExecuteCommandWithContext (& cli .Deps , cmd , "--id" , "1234" )
229229
@@ -242,7 +242,7 @@ func TestEditDashboardEditorError(t *testing.T) {
242242 mockEditor := & MockEditor {
243243 Error : errors .New ("editor failed to open" ),
244244 }
245- cli .Deps . Editor = mockEditor
245+ cli .Editor = mockEditor
246246
247247 _ , err := di .ExecuteCommandWithContext (& cli .Deps , cmd , "--id" , "1234" )
248248
@@ -275,7 +275,7 @@ func TestEditDashboardUsesReverseEditorByDefault(t *testing.T) {
275275 mockEditor := & MockEditor {
276276 Content : []byte (`{"name": "changed-by-reverse-editor"}` ),
277277 }
278- cli .Deps . Editor = mockEditor
278+ cli .Editor = mockEditor
279279
280280 di .ExecuteCommandWithContextUnsafe (& cli .Deps , cmd , "--id" , "1234" )
281281
@@ -324,7 +324,7 @@ func TestEditDashboardApiErrors(t *testing.T) {
324324 mockEditor := & MockEditor {
325325 Content : []byte (`{"name": "changed"}` ),
326326 }
327- cli .Deps . Editor = mockEditor
327+ cli .Editor = mockEditor
328328 }
329329
330330 _ , err := di .ExecuteCommandWithContext (& cli .Deps , cmd , "--id" , "1234" )
0 commit comments