Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlah committed Oct 2, 2024
1 parent c494e6c commit bcbb033
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions test/journi_plan_web/live/activity_live_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ defmodule JourniPlanWeb.ActivityLiveTest do
alias JourniPlan.Accounts
import JourniPlan.ItinerariesFixtures

@create_attrs %{description: "some description", end_time: "2024-09-30T17:57:00Z", name: "some name", start_time: "2024-09-30T17:57:00Z"}
@update_attrs %{description: "some updated description", end_time: "2024-10-01T17:57:00Z", name: "some updated name", start_time: "2024-10-01T17:57:00Z"}
@create_attrs %{description: "some description", end_time: "2024-09-30T17:57", name: "some name", start_time: "2024-09-30T17:57"}
@update_attrs %{description: "some updated description", end_time: "2024-10-01T17:57", name: "some updated name", start_time: "2024-10-01T17:57"}
@invalid_attrs %{description: nil, end_time: nil, name: nil, start_time: nil}

setup do
Expand Down
4 changes: 2 additions & 2 deletions test/journi_plan_web/live/journal_entry_live_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ defmodule JourniPlanWeb.JournalEntryLiveTest do

import JourniPlan.ItinerariesFixtures

@create_attrs %{body: "some body", entry_date: "2024-09-30T17:55:00Z", title: "some title"}
@update_attrs %{body: "some updated body", entry_date: "2024-10-01T17:55:00Z", title: "some updated title"}
@create_attrs %{body: "some body", entry_date: "2024-09-30T17:55", title: "some title"}
@update_attrs %{body: "some updated body", entry_date: "2024-10-01T17:55", title: "some updated title"}
@invalid_attrs %{body: nil, entry_date: nil, title: nil}

setup do
Expand Down
6 changes: 3 additions & 3 deletions test/support/fixtures/itineraries_fixtures.ex
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ defmodule JourniPlan.ItinerariesFixtures do
|> Enum.into(%{
name: "some name",
description: "some description",
end_time: ~U[2021-01-01 12:00:00Z],
start_time: ~U[2021-01-01 16:00:00Z],
end_time: "2021-01-01T12:00",
start_time: "2021-01-01T16:00",
user_id: user_id,
itinerary_uuid: itinerary_id
})
Expand All @@ -54,7 +54,7 @@ defmodule JourniPlan.ItinerariesFixtures do
body: "some body",
title: "some title",
user_id: user_id,
entry_date: ~U[2021-01-01 00:00:00Z],
entry_date: "2021-01-01T00:00",
itinerary_uuid: itinerary_id,
activity_uuid: activity_id
})
Expand Down

0 comments on commit bcbb033

Please sign in to comment.