Skip to content

Commit

Permalink
cmd - minor test fix update due to description updates
Browse files Browse the repository at this point in the history
  • Loading branch information
brianvoe committed Jan 18, 2024
1 parent e309cbc commit bd0a93f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/gofakeit/gofakeit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"errors"
"io/ioutil"
"io"
"os"
"strings"
"testing"
Expand All @@ -22,7 +22,7 @@ func TestMain(t *testing.T) {
main()

w.Close()
out, _ := ioutil.ReadAll(r)
out, _ := io.ReadAll(r)
os.Stdout = rescueStdout

// Get output string
Expand Down Expand Up @@ -56,7 +56,7 @@ func TestFunctionLoop(t *testing.T) {
main()

w.Close()
out, _ := ioutil.ReadAll(r)
out, _ := io.ReadAll(r)
os.Stdout = rescueStdout

// Get output string
Expand Down Expand Up @@ -211,7 +211,7 @@ func TestListCategoryFunction(t *testing.T) {
outStr = strings.ToLower(outStr)

// Make sure outStr contains random noun
if !strings.Contains(outStr, "random noun") {
if !strings.Contains(outStr, "noun") {
t.Errorf("list category function output does not contain random noun")
}
}

0 comments on commit bd0a93f

Please sign in to comment.