Skip to content

Commit

Permalink
chore: add fs.write test
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Jul 13, 2024
1 parent 5ff5eab commit d2ec2b1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pkg/fs/mock_fs_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package fs

import (
"testing"

"github.com/stretchr/testify/require"
)

func TestMockFsWriteError(t *testing.T) {
t.Parallel()

fs := &MockFs{}
_, err := fs.Write([]byte{})
require.Error(t, err)
}

0 comments on commit d2ec2b1

Please sign in to comment.