Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmattheis committed Dec 2, 2019
1 parent 647f100 commit aab2498
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions timespan/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func Test_Create_withoutEnd(t *testing.T) {
expected := &gqlmodel.TimeSpan{
ID: 1,
Start: test.ModelTime("2019-06-10T18:30:00+02:00"),
Tags: []*gqlmodel.TimeSpanTag{},
}
require.Equal(t, expected, timeSpan)
assertTimeSpanCount(t, db, 1)
Expand Down Expand Up @@ -50,6 +51,7 @@ func Test_Create(t *testing.T) {
ID: 1,
Start: test.ModelTime("2019-06-10T18:30:00+02:00"),
End: test.ModelTimeP("2019-06-10T19:30:00+02:00"),
Tags: []*gqlmodel.TimeSpanTag{},
}
require.Equal(t, expected, timeSpan)
assertTimeSpanCount(t, db, 1)
Expand Down
1 change: 1 addition & 0 deletions timespan/stop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func Test_Stop(t *testing.T) {
ID: 3,
Start: test.ModelTime("2019-06-10T18:30:00+02:00"),
End: test.ModelTimeP("2019-06-10T18:35:00+02:00"),
Tags: []*gqlmodel.TimeSpanTag{},
}
require.Equal(t, expected, timeSpan)

Expand Down
2 changes: 2 additions & 0 deletions timespan/update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func Test_Update_withoutEnd(t *testing.T) {
ID: 1,
Start: test.ModelTime("2019-06-10T19:30:00+02:00"),
OldStart: test.ModelTimeP("2019-06-10T18:30:00+02:00"),
Tags: []*gqlmodel.TimeSpanTag{},
}
require.Equal(t, expected, timeSpan)
assertTimeSpanCount(t, db, 1)
Expand Down Expand Up @@ -68,6 +69,7 @@ func Test_Update(t *testing.T) {
Start: test.ModelTime("2019-06-10T18:30:00+02:00"),
OldStart: test.ModelTimeP("2019-06-10T18:30:00+02:00"),
End: test.ModelTimeP("2019-06-10T20:30:00+02:00"),
Tags: []*gqlmodel.TimeSpanTag{},
}
require.Equal(t, expected, timeSpan)
assertTimeSpanCount(t, db, 1)
Expand Down

0 comments on commit aab2498

Please sign in to comment.