From a3c2a49149d7444b342bd6851fa3ff37ab52b058 Mon Sep 17 00:00:00 2001 From: Parth Seth Date: Sat, 6 Apr 2024 02:23:35 +0530 Subject: [PATCH] fix tests --- styles/utils_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/styles/utils_test.go b/styles/utils_test.go index 4ef1126..40bf809 100644 --- a/styles/utils_test.go +++ b/styles/utils_test.go @@ -154,13 +154,13 @@ func TestViewportMax(t *testing.T) { func TestSeconds(t *testing.T) { assert.Equal(t, "100.00s", Seconds(100.00)) assert.Equal(t, "1.25s", Seconds(1.25)) - assert.Equal(t, "0s", Rem(0)) - assert.Equal(t, "0.25s", Rem(0.25)) + assert.Equal(t, "0s", Seconds(0)) + assert.Equal(t, "0.25s", Seconds(0.25)) } func TestMilliseconds(t *testing.T) { - assert.Equal(t, "25ms", Seconds(25)) - assert.Equal(t, "1ms", Seconds(1)) - assert.Equal(t, "0ms", Rem(0)) - assert.Equal(t, "110ms", Rem(110)) + assert.Equal(t, "25ms", Milliseconds(25)) + assert.Equal(t, "1ms", Milliseconds(1)) + assert.Equal(t, "0ms", Milliseconds(0)) + assert.Equal(t, "110ms", Milliseconds(110)) }