Skip to content

Commit

Permalink
Update main_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS authored May 2, 2024
1 parent daf229d commit 451fbb5
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions cmd/main_test.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
package main

import (
"os"
"testing"
)

func TestMain_en(t *testing.T) {
oldArgs := os.Args
defer func() {
os.Args = oldArgs
}()
os.Args = []string{"", "-l", "en"}
main()
}

func TestMain_zh(t *testing.T) {
func TestMain(t *testing.T) {
main()
}

0 comments on commit 451fbb5

Please sign in to comment.