Skip to content

Commit

Permalink
Tests: fixing tests for new config field
Browse files Browse the repository at this point in the history
  • Loading branch information
harrybrwn committed Apr 8, 2020
1 parent a9063a1 commit 4232830
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,8 @@ func (a *App) getService() string {

var _ cli.Builder = (*App)(nil)

var persistanceTest bool = false

// Run the app.
func (a *App) Run(cmd *cobra.Command, args []string) (err error) {
persistanceTest = true
if a.opts.Openlogs {
editor := os.Getenv("EDITOR")
c := exec.Command(editor, fp.Join(config.Folder(), "logs", "dev.log"))
Expand Down
3 changes: 3 additions & 0 deletions cmd/command/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ var testconfigjson = `
"cityName":"Washington DC",
"state":"","zipcode":"20500"
},
"default-address": "",
"card":{"number":"","expiration":"","cvv":""},
"service":"Carryout"
}`
Expand All @@ -34,6 +35,7 @@ address:
cityname: "Washington DC"
state: ""
zipcode: "20500"
default-address: ""
card:
number: ""
expiration: ""
Expand Down Expand Up @@ -106,6 +108,7 @@ func TestConfigEdit(t *testing.T) {
"State": "",
"Zipcode": ""
},
"DefaultAddress": "",
"Card": {
"Number": "",
"Expiration": ""
Expand Down

0 comments on commit 4232830

Please sign in to comment.