Browse Source

Independed file for tests

Vova Tkach 6 years ago
parent
commit
ae82467000
2 changed files with 3 additions and 3 deletions
  1. 0 0
      testdata/some-file.txt
  2. 3 3
      utils/utils_test.go

+ 0 - 0
testdata/some-file.txt


+ 3 - 3
utils/utils_test.go

@@ -16,19 +16,19 @@ func Expect(t *testing.T, actual, expect interface{}) {
 }
 
 func TestIsFileExists(t *testing.T) {
-	Expect(t, IsFileExists("./../testdata/screenshots-1.gif"), true)
+	Expect(t, IsFileExists("./../testdata/some-file.txt"), true)
 	Expect(t, IsFileExists("./../testdata/no-existed-file"), false)
 }
 
 func TestIsDir(t *testing.T) {
 	Expect(t, IsDir("./../testdata"), true)
-	Expect(t, IsDir("./../testdata/screenshots-1.gif"), false)
+	Expect(t, IsDir("./../testdata/some-file.txt"), false)
 	Expect(t, IsDir("./../testdata/no-existed-dir"), false)
 }
 
 func TestIsDirExists(t *testing.T) {
 	Expect(t, IsDirExists("./../testdata"), true)
-	Expect(t, IsDirExists("./../testdata/screenshots-1.gif"), false)
+	Expect(t, IsDirExists("./../testdata/some-file.txt"), false)
 	Expect(t, IsDirExists("./../testdata/no-existed-dir"), false)
 }