Apply quokka single_node rule
This commit is contained in:
+1
-1
@@ -4,6 +4,6 @@
|
|||||||
plugins: [Phoenix.LiveView.HTMLFormatter, Quokka],
|
plugins: [Phoenix.LiveView.HTMLFormatter, Quokka],
|
||||||
inputs: ["*.{heex,ex,exs}", "{config,lib,test}/**/*.{heex,ex,exs}", "priv/*/seeds.exs"],
|
inputs: ["*.{heex,ex,exs}", "{config,lib,test}/**/*.{heex,ex,exs}", "priv/*/seeds.exs"],
|
||||||
quokka: [
|
quokka: [
|
||||||
only: [:module_directives, :pipes]
|
only: [:module_directives, :pipes, :single_node]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|||||||
+2
-2
@@ -37,7 +37,7 @@ defmodule LastFm.API do
|
|||||||
{"#{key}[#{index}]", value}
|
{"#{key}[#{index}]", value}
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|> Enum.into(%{})
|
|> Map.new()
|
||||||
|
|
||||||
params = Map.merge(params, track_params)
|
params = Map.merge(params, track_params)
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ defmodule LastFm.API do
|
|||||||
params =
|
params =
|
||||||
config
|
config
|
||||||
|> base_params()
|
|> base_params()
|
||||||
|> Keyword.merge(method: "artist.getInfo")
|
|> Keyword.put(:method, "artist.getInfo")
|
||||||
|> put_musicbrainz_id_or_name(id_or_name_option)
|
|> put_musicbrainz_id_or_name(id_or_name_option)
|
||||||
|
|
||||||
config
|
config
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ defmodule DiscogsTest do
|
|||||||
expected_info =
|
expected_info =
|
||||||
Fixtures.Artist.get_artist()
|
Fixtures.Artist.get_artist()
|
||||||
|
|
||||||
Req.Test.stub(Discogs.API, fn conn = %{request_path: "/artists/discogs_id"} ->
|
Req.Test.stub(Discogs.API, fn %{request_path: "/artists/discogs_id"} = conn ->
|
||||||
Req.Test.json(conn, Fixtures.Artist.get_artist())
|
Req.Test.json(conn, Fixtures.Artist.get_artist())
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user