Skip to content

Commit

Permalink
moving to just local dir for mod download
Browse files Browse the repository at this point in the history
  • Loading branch information
christopher blodgett committed Dec 28, 2022
1 parent b121f32 commit 25fe4c1
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions forgecli/forgecli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,17 @@ func TestCLIReturnsZero(t *testing.T) {
MockCurseForgeModResponse(t)
MockCurseForgeModFile(t)

// Make mock folder to load mods into
var app appEnv
app.GetTargetDirectory()
AFS.MkdirAll(app.destination, 0755)

// // Make mock folder to load mods into
// var app appEnv
// app.GetTargetDirectory()
// AFS.MkdirAll(app.destination, 0755)
// err := os.MkdirAll(app.destination, os.ModeDir)
// if err != nil && !os.IsExist(err) {
// logrus.Debugf("error message: %s", err)
// }
// Start test
expected := 0
cliInput := []string{"-projects", "416089", "-destination", app.destination}
cliInput := []string{"-projects", "416089", "-destination", "."}
actual := CLI(cliInput)
if actual != expected {
t.Errorf("Test failed, expected: '%d', got: '%d'", expected, actual)
Expand Down

0 comments on commit 25fe4c1

Please sign in to comment.