mirror of
https://github.com/kovetskiy/mark.git
synced 2026-03-14 06:07:36 +08:00
style: run gofmt on image_test.go
This commit is contained in:
parent
d264648916
commit
8e613c5e70
@ -4,10 +4,10 @@ import "testing"
|
||||
|
||||
func TestCalculateAlign(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
configuredAlign string
|
||||
width string
|
||||
expectedAlign string
|
||||
name string
|
||||
configuredAlign string
|
||||
width string
|
||||
expectedAlign string
|
||||
}{
|
||||
{"No alignment configured", "", "1000", ""},
|
||||
{"Center alignment small", "center", "500", "center"},
|
||||
@ -41,16 +41,16 @@ func TestCalculateLayout(t *testing.T) {
|
||||
{"Center alignment small", "center", "500", "center"},
|
||||
{"Right alignment small", "right", "500", "align-end"},
|
||||
{"No alignment small", "", "500", ""},
|
||||
|
||||
|
||||
// Medium images (760-1799px) use "wide" layout (must be center align)
|
||||
{"Center at 760px", "center", "760", "wide"},
|
||||
{"Center at 1000px", "center", "1000", "wide"},
|
||||
{"Center at 1799px", "center", "1799", "wide"},
|
||||
|
||||
|
||||
// Large images (>= 1800px) use "full-width" layout (must be center align)
|
||||
{"Center at 1800px", "center", "1800", "full-width"},
|
||||
{"Center at 2000px", "center", "2000", "full-width"},
|
||||
|
||||
|
||||
// Edge cases
|
||||
{"No width", "center", "", "center"},
|
||||
{"Invalid width", "center", "abc", "center"},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user