github.com/qioalice/ekago/v3@v3.3.2-0.20221202205325-5c262d586ee4/ekatime/event_test.go (about)

     1  // Copyright © 2020. All rights reserved.
     2  // Author: Ilya Stroy.
     3  // Contacts: iyuryevich@pm.me, https://github.com/qioalice
     4  // License: https://opensource.org/licenses/MIT
     5  
     6  package ekatime_test
     7  
     8  import (
     9  	"testing"
    10  
    11  	"github.com/qioalice/ekago/v3/ekatime"
    12  
    13  	"github.com/stretchr/testify/require"
    14  )
    15  
    16  func TestEvent_String(t *testing.T) {
    17  	e := ekatime.NewEvent(ekatime.NewDate(2020, 12, 31), 1, true)
    18  	require.EqualValues(t, "2020/12/31 [Dayoff] ID: 1", e.String())
    19  }