mix format
This commit is contained in:
@ -36,7 +36,13 @@ defmodule Memex.ContextsTest do
|
||||
|
||||
test "update_context/2 with valid data updates the context" do
|
||||
context = context_fixture()
|
||||
update_attrs = %{content: "some updated content", tag: [], title: "some updated title", visibility: :private}
|
||||
|
||||
update_attrs = %{
|
||||
content: "some updated content",
|
||||
tag: [],
|
||||
title: "some updated title",
|
||||
visibility: :private
|
||||
}
|
||||
|
||||
assert {:ok, %Context{} = context} = Contexts.update_context(context, update_attrs)
|
||||
assert context.content == "some updated content"
|
||||
|
@ -36,7 +36,13 @@ defmodule Memex.NotesTest do
|
||||
|
||||
test "update_note/2 with valid data updates the note" do
|
||||
note = note_fixture()
|
||||
update_attrs = %{content: "some updated content", tag: [], title: "some updated title", visibility: :private}
|
||||
|
||||
update_attrs = %{
|
||||
content: "some updated content",
|
||||
tag: [],
|
||||
title: "some updated title",
|
||||
visibility: :private
|
||||
}
|
||||
|
||||
assert {:ok, %Note{} = note} = Notes.update_note(note, update_attrs)
|
||||
assert note.content == "some updated content"
|
||||
|
@ -35,7 +35,12 @@ defmodule Memex.PipelinesTest do
|
||||
|
||||
test "update_pipeline/2 with valid data updates the pipeline" do
|
||||
pipeline = pipeline_fixture()
|
||||
update_attrs = %{description: "some updated description", title: "some updated title", visibility: :private}
|
||||
|
||||
update_attrs = %{
|
||||
description: "some updated description",
|
||||
title: "some updated title",
|
||||
visibility: :private
|
||||
}
|
||||
|
||||
assert {:ok, %Pipeline{} = pipeline} = Pipelines.update_pipeline(pipeline, update_attrs)
|
||||
assert pipeline.description == "some updated description"
|
||||
|
@ -35,7 +35,12 @@ defmodule Memex.StepsTest do
|
||||
|
||||
test "update_step/2 with valid data updates the step" do
|
||||
step = step_fixture()
|
||||
update_attrs = %{description: "some updated description", position: 43, title: "some updated title"}
|
||||
|
||||
update_attrs = %{
|
||||
description: "some updated description",
|
||||
position: 43,
|
||||
title: "some updated title"
|
||||
}
|
||||
|
||||
assert {:ok, %Step{} = step} = Steps.update_step(step, update_attrs)
|
||||
assert step.description == "some updated description"
|
||||
|
@ -5,7 +5,12 @@ defmodule MemexWeb.ContextLiveTest do
|
||||
import Memex.ContextsFixtures
|
||||
|
||||
@create_attrs %{content: "some content", tag: [], title: "some title", visibility: :public}
|
||||
@update_attrs %{content: "some updated content", tag: [], title: "some updated title", visibility: :private}
|
||||
@update_attrs %{
|
||||
content: "some updated content",
|
||||
tag: [],
|
||||
title: "some updated title",
|
||||
visibility: :private
|
||||
}
|
||||
@invalid_attrs %{content: nil, tag: [], title: nil, visibility: nil}
|
||||
|
||||
defp create_context(_) do
|
||||
|
@ -5,7 +5,12 @@ defmodule MemexWeb.NoteLiveTest do
|
||||
import Memex.NotesFixtures
|
||||
|
||||
@create_attrs %{content: "some content", tag: [], title: "some title", visibility: :public}
|
||||
@update_attrs %{content: "some updated content", tag: [], title: "some updated title", visibility: :private}
|
||||
@update_attrs %{
|
||||
content: "some updated content",
|
||||
tag: [],
|
||||
title: "some updated title",
|
||||
visibility: :private
|
||||
}
|
||||
@invalid_attrs %{content: nil, tag: [], title: nil, visibility: nil}
|
||||
|
||||
defp create_note(_) do
|
||||
|
@ -5,7 +5,11 @@ defmodule MemexWeb.PipelineLiveTest do
|
||||
import Memex.PipelinesFixtures
|
||||
|
||||
@create_attrs %{description: "some description", title: "some title", visibility: :public}
|
||||
@update_attrs %{description: "some updated description", title: "some updated title", visibility: :private}
|
||||
@update_attrs %{
|
||||
description: "some updated description",
|
||||
title: "some updated title",
|
||||
visibility: :private
|
||||
}
|
||||
@invalid_attrs %{description: nil, title: nil, visibility: nil}
|
||||
|
||||
defp create_pipeline(_) do
|
||||
|
Reference in New Issue
Block a user