Skip to content

Commit

Permalink
updated the test budget file
Browse files Browse the repository at this point in the history
  • Loading branch information
ibilalkayy committed Mar 20, 2024
1 parent babbd0c commit 6a8b128
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/spf13/cobra"
)

const version = "v0.1.32"
const version = "v0.1.33"

// rootCmd represents the base command when called without any subcommands
var RootCmd = &cobra.Command{
Expand Down
12 changes: 6 additions & 6 deletions tests/app/budget/budget_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

app "github.com/ibilalkayy/flow/internal/app/budget"
internal_budget "github.com/ibilalkayy/flow/internal/app/budget"
"github.com/ibilalkayy/flow/internal/structs"
)

Expand Down Expand Up @@ -43,7 +43,7 @@ func TestCreateBudget(t *testing.T) {
basePath := "../../../db/budget_db/migrations/"
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
err := app.CreateBudget(tc.input, basePath)
err := internal_budget.CreateBudget(tc.input, basePath)
if err != nil {
t.Errorf("Expected no error, got %v", err)
}
Expand Down Expand Up @@ -71,7 +71,7 @@ func TestViewBudget(t *testing.T) {

for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
data, err := app.ViewBudget(tc.category)
data, err := internal_budget.ViewBudget(tc.category)
if err != nil {
t.Errorf("Expected no error, got %v", err)
}
Expand Down Expand Up @@ -100,7 +100,7 @@ func TestRemoveBudget(t *testing.T) {

for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
err := app.RemoveBudget(tc.category)
err := internal_budget.RemoveBudget(tc.category)
if err != nil {
t.Errorf("Expected no error: got %v", err)
}
Expand Down Expand Up @@ -148,7 +148,7 @@ func TestUpdateBudget(t *testing.T) {

for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
err := app.UpdateBudget(tc.oldCategory, tc.newCategory, tc.amount)
err := internal_budget.UpdateBudget(tc.oldCategory, tc.newCategory, tc.amount)
if err != nil {
t.Errorf("Expected no error, got %v", err)
}
Expand Down Expand Up @@ -191,7 +191,7 @@ func TestGetBudgetData(t *testing.T) {

for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
err := app.GetBudgetData(tc.filepath, tc.filename)
err := internal_budget.GetBudgetData(tc.filepath, tc.filename)
if err != nil {
t.Errorf("Expected no error, got %v", err)
}
Expand Down

0 comments on commit 6a8b128

Please sign in to comment.