mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-08 04:39:13 +02:00
fix:#7 fixed models lint
This commit is contained in:
@@ -25,7 +25,7 @@ import (
|
|||||||
|
|
||||||
func TestEvents_Contains(t *testing.T) {
|
func TestEvents_Contains(t *testing.T) {
|
||||||
// parse time for JSONTime "2020-01-01 12:00:00.000Z"
|
// parse time for JSONTime "2020-01-01 12:00:00.000Z"
|
||||||
specificTime, _ := time.Parse("2020-01-01T12:00:00.000Z", "2020-01-01 12:00:00.000Z")
|
specificTime, _ := time.Parse("2006-01-02T15:04:05.000Z", "2020-01-01T12:00:00.000Z")
|
||||||
specificJSONTime := JSONTime(specificTime)
|
specificJSONTime := JSONTime(specificTime)
|
||||||
|
|
||||||
type args struct {
|
type args struct {
|
||||||
@@ -73,7 +73,7 @@ func TestEvents_Contains(t *testing.T) {
|
|||||||
|
|
||||||
func TestEvent_Equals(t *testing.T) {
|
func TestEvent_Equals(t *testing.T) {
|
||||||
|
|
||||||
specificTime, _ := time.Parse("2020-01-01T12:00:00.000Z", "2020-01-01 12:00:00.000Z")
|
specificTime, _ := time.Parse("2006-01-02T15:04:05.000Z", "2020-01-01T12:00:00.000Z")
|
||||||
specificJSONTime := JSONTime(specificTime)
|
specificJSONTime := JSONTime(specificTime)
|
||||||
|
|
||||||
type fields struct {
|
type fields struct {
|
||||||
|
Reference in New Issue
Block a user