Skip to content

Commit

Permalink
Add cli UT
Browse files Browse the repository at this point in the history
  • Loading branch information
RealAlexandreAI committed Jul 16, 2024
1 parent de0a696 commit 39c3492
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cli/jsonrepair-cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"reflect"
Expand Down Expand Up @@ -107,7 +106,7 @@ func writeToTemp(input string) string {
fileName := fmt.Sprintf("employees_%s.json", timestamp)
filePath := filepath.Join(tempDir, fileName)
data := []byte(input)
err := ioutil.WriteFile(filePath, data, 0644)
err := os.WriteFile(filePath, data, 0644)
if err != nil {
fmt.Println("Error writing to file:", err)
}
Expand Down

0 comments on commit 39c3492

Please sign in to comment.