@@ -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,6 +223,7 @@ func TestEditDashboardInvalidJson(t *testing.T) {
223223 mockEditor := & MockEditor {
224224 Content : []byte (`{"invalid": json syntax}` ),
225225 }
226+ //nolint:staticcheck
226227 cli .Deps .Editor = mockEditor
227228
228229 _ , err := di .ExecuteCommandWithContext (& cli .Deps , cmd , "--id" , "1234" )
@@ -242,6 +243,7 @@ func TestEditDashboardEditorError(t *testing.T) {
242243 mockEditor := & MockEditor {
243244 Error : errors .New ("editor failed to open" ),
244245 }
246+ //nolint:staticcheck
245247 cli .Deps .Editor = mockEditor
246248
247249 _ , err := di .ExecuteCommandWithContext (& cli .Deps , cmd , "--id" , "1234" )
@@ -275,7 +277,7 @@ func TestEditDashboardUsesReverseEditorByDefault(t *testing.T) {
275277 mockEditor := & MockEditor {
276278 Content : []byte (`{"name": "changed-by-reverse-editor"}` ),
277279 }
278- cli .Deps . Editor = mockEditor
280+ cli .Editor = mockEditor
279281
280282 di .ExecuteCommandWithContextUnsafe (& cli .Deps , cmd , "--id" , "1234" )
281283
@@ -324,7 +326,7 @@ func TestEditDashboardApiErrors(t *testing.T) {
324326 mockEditor := & MockEditor {
325327 Content : []byte (`{"name": "changed"}` ),
326328 }
327- cli .Deps . Editor = mockEditor
329+ cli .Editor = mockEditor
328330 }
329331
330332 _ , err := di .ExecuteCommandWithContext (& cli .Deps , cmd , "--id" , "1234" )
0 commit comments