From 2ae682ddbd62fb05f8c6e9513b5ccfd4ea40a531 Mon Sep 17 00:00:00 2001 From: thymusvulgaris <87661013+thymusvulgaris@users.noreply.github.com> Date: Tue, 25 Jun 2024 08:33:06 +0100 Subject: [PATCH] Add formatting --- test/plug/router_test.exs | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/test/plug/router_test.exs b/test/plug/router_test.exs index e19d7c00..a79b137e 100644 --- a/test/plug/router_test.exs +++ b/test/plug/router_test.exs @@ -616,28 +616,28 @@ defmodule Plug.RouterTest do test "ArgumentError is raised when match/3 is not given :to or :do option" do assert %{message: "expected one of :to or :do to be given as option"} = - catch_error( - defmodule NoExpectedMatchOptions do - use Plug.Router + catch_error( + defmodule NoExpectedMatchOptions do + use Plug.Router - plug :match - plug :dispatch + plug :match + plug :dispatch - match "/", foo: :bar - end - ) + match "/", foo: :bar + end + ) end test "RuntimeError is raised when no routes are defined" do assert %{message: "no routes defined in module Plug.RouterTest.NoRoutes using Plug.Router"} = - catch_error( - defmodule NoRoutes do - use Plug.Router - - plug :match - plug :dispatch - end - ) + catch_error( + defmodule NoRoutes do + use Plug.Router + + plug :match + plug :dispatch + end + ) end defp attach(handler_id, event) do