hugolib/filesystems: Fix typo in test suite
authorPanagiotis Koursaris <panakourweb@gmail.com>
Tue, 21 Apr 2020 21:16:36 +0000 (00:16 +0300)
committerGitHub <noreply@github.com>
Tue, 21 Apr 2020 21:16:36 +0000 (23:16 +0200)
hugolib/filesystems/basefs_test.go

index a0e9f0020cb21c490a00714f6b610a8960b317a2..e3222af48fad955c0a6e4cdecff48e6247d6fbf8 100644 (file)
@@ -398,7 +398,7 @@ func TestMakePathRelative(t *testing.T) {
 }
 
 func checkFileCount(fs afero.Fs, dirname string, c *qt.C, expected int) {
-       count, _, err := countFileaAndGetFilenames(fs, dirname)
+       count, _, err := countFilesAndGetFilenames(fs, dirname)
        c.Assert(err, qt.IsNil)
        c.Assert(count, qt.Equals, expected)
 }
@@ -415,7 +415,7 @@ func checkFileContent(fs afero.Fs, filename string, c *qt.C, expected ...string)
        }
 }
 
-func countFileaAndGetFilenames(fs afero.Fs, dirname string) (int, []string, error) {
+func countFilesAndGetFilenames(fs afero.Fs, dirname string) (int, []string, error) {
        if fs == nil {
                return 0, nil, errors.New("no fs")
        }