Use LFS object size instead of blob size when viewing a LFS file (#35679)
shows the main LFS filesize instead of the pointer filesize when viewing a file --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
@@ -72,6 +72,8 @@ func TestLFSRender(t *testing.T) {
|
||||
|
||||
fileInfo := doc.Find("div.file-info-entry").First().Text()
|
||||
assert.Contains(t, fileInfo, "LFS")
|
||||
fileSize := doc.Find("div.file-info-entry > .file-info-size").Text()
|
||||
assert.Equal(t, "2.0 KiB", fileSize)
|
||||
|
||||
// find new file view container
|
||||
fileViewContainer := doc.Find("[data-global-init=initRepoFileView]")
|
||||
|
||||
Reference in New Issue
Block a user