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"
|
||||
|
Reference in New Issue
Block a user