File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ func TestAdd(t *testing.T) {
2424 defer td .Close ()
2525 err := td .SetDevboxJSON (devboxJSON )
2626 assert .NoError (t , err )
27- output , err := td .RunCommand (AddCmd (), "go_1_17 " )
27+ output , err := td .RunCommand (AddCmd (), "hello " )
2828 assert .NoError (t , err )
29- assert .Contains (t , output , "go_1_17 (go-1.17.13 ) is now installed." )
29+ assert .Contains (t , output , "hello (hello-2.12.1 ) is now installed." )
3030 updatedDevboxJSON , err := td .GetDevboxJSON ()
3131 assert .NoError (t , err )
32- assert .Contains (t , updatedDevboxJSON .Packages , "go_1_17 " )
32+ assert .Contains (t , updatedDevboxJSON .Packages , "hello " )
3333}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ func TestRm(t *testing.T) {
1313 devboxJSON := `
1414 {
1515 "packages": [
16- "go_1_17 "
16+ "hello "
1717 ],
1818 "shell": {
1919 "init_hook": null
@@ -26,10 +26,10 @@ func TestRm(t *testing.T) {
2626 defer td .Close ()
2727 err := td .SetDevboxJSON (devboxJSON )
2828 assert .NoError (t , err )
29- output , err := td .RunCommand (RemoveCmd (), "go_1_17 " )
29+ output , err := td .RunCommand (RemoveCmd (), "hello " )
3030 assert .NoError (t , err )
31- assert .Contains (t , output , "go_1_17 (go-1.17.13 ) is now removed." )
31+ assert .Contains (t , output , "hello (hello-2.12.1 ) is now removed." )
3232 devboxjson , err := td .GetDevboxJSON ()
3333 assert .NoError (t , err )
34- assert .NotContains (t , devboxjson .Packages , "go_1_17 " )
34+ assert .NotContains (t , devboxjson .Packages , "hello " )
3535}
You can’t perform that action at this time.
0 commit comments