Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
majimaccho committed Oct 26, 2023
1 parent fec8d68 commit 730b29d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions output/md/md_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package md
import (
"os"
"path/filepath"
"slices"
"testing"

"github.com/k1LoW/tbls/config"
Expand Down Expand Up @@ -62,6 +63,11 @@ func TestOutput(t *testing.T) {
t.Fatal(err)
}
tb.Name = tt.tableBName
for _, v := range s.Viewpoints {
if vti := slices.Index(v.Tables, "b"); vti != -1 {
v.Tables[vti] = tt.tableBName
}
}
c, err := config.New()
if err != nil {
t.Error(err)
Expand Down

0 comments on commit 730b29d

Please sign in to comment.