From 3e90199d981e33497a0cfdaab6271986093cbc1a Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 30 Jul 2021 18:07:59 +0200 Subject: [PATCH] test(web/file/fs): check Size on fileinfo --- web/file/fs/fs_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/web/file/fs/fs_test.go b/web/file/fs/fs_test.go index 3a236db..6c760ea 100644 --- a/web/file/fs/fs_test.go +++ b/web/file/fs/fs_test.go @@ -29,6 +29,7 @@ func TestOpenStat(t *testing.T) { assert.Equal(uuid.MustParse("d2750ced-4bdc-41d0-8c2f-5b9de44b84ef"), fi.(file.FileInfo).ID()) assert.Equal("text/plain", fi.(file.FileInfo).ContentType()) assert.Equal("glenda", fi.Name()) + assert.Equal(int64(99), fi.Size()) } func TestCreateOpenUUIDRead(t *testing.T) {