From 72e10ce2e460498583ac9a8d677bc068c4ff966d Mon Sep 17 00:00:00 2001 From: brian d foy Date: Sun, 5 Mar 2023 23:46:26 -0500 Subject: [PATCH] Remove some parens on no-arg new --- t/auto_index.t | 2 +- t/default.t | 2 +- t/dir.t | 2 +- t/dir_index.t | 2 +- t/dir_page.t | 2 +- t/file.t | 2 +- t/handle.t | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/t/auto_index.t b/t/auto_index.t index 0cff755..3214901 100644 --- a/t/auto_index.t +++ b/t/auto_index.t @@ -9,6 +9,6 @@ plugin 'DirectoryServer', root => $dir, auto_index => 0; use Test::More tests => 2; use Test::Mojo; -my $t = Test::Mojo->new(); +my $t = Test::Mojo->new; $t->get_ok('/')->status_is(404); diff --git a/t/default.t b/t/default.t index 7c2c6e1..8064282 100644 --- a/t/default.t +++ b/t/default.t @@ -6,7 +6,7 @@ plugin 'DirectoryServer'; use Test::More tests => 3; use Test::Mojo; -my $t = Test::Mojo->new(); +my $t = Test::Mojo->new; $t->get_ok('/')->status_is(200); subtest 'entries' => sub { diff --git a/t/dir.t b/t/dir.t index 609cf7e..2e405b5 100644 --- a/t/dir.t +++ b/t/dir.t @@ -11,7 +11,7 @@ plugin 'DirectoryServer', root => $dir, json => 1; use Test::More tests => 2; use Test::Mojo; -my $t = Test::Mojo->new(); +my $t = Test::Mojo->new; subtest 'entries' => sub { $t->get_ok('/')->status_is(200); diff --git a/t/dir_index.t b/t/dir_index.t index 3cfaa99..2f24c56 100644 --- a/t/dir_index.t +++ b/t/dir_index.t @@ -14,7 +14,7 @@ plugin use Test::More tests => 3; use Test::Mojo; -my $t = Test::Mojo->new(); +my $t = Test::Mojo->new; $t->get_ok('/')->status_is(200); my $body = $t->tx->res->dom->at('body')->text; diff --git a/t/dir_page.t b/t/dir_page.t index dc9d561..632bd38 100644 --- a/t/dir_page.t +++ b/t/dir_page.t @@ -11,7 +11,7 @@ EOF use Test::More tests => 3; use Test::Mojo; -my $t = Test::Mojo->new(); +my $t = Test::Mojo->new; $t->get_ok('/')->status_is(200); use File::Basename; diff --git a/t/file.t b/t/file.t index 3cb07b9..aaf8647 100644 --- a/t/file.t +++ b/t/file.t @@ -10,6 +10,6 @@ plugin 'DirectoryServer', root => File::Spec->catfile( $dir, 'dummy.txt' ); use Test::More tests => 6; use Test::Mojo; -my $t = Test::Mojo->new(); +my $t = Test::Mojo->new; $t->get_ok('/')->status_is(200)->content_like(qr/^DUMMY$/); $t->get_ok('/foo/bar/buz')->status_is(200)->content_like(qr/^DUMMY$/); diff --git a/t/handle.t b/t/handle.t index 4d7d89f..a3de2f5 100644 --- a/t/handle.t +++ b/t/handle.t @@ -14,7 +14,7 @@ plugin 'DirectoryServer', root => $dir, handler => sub { use Test::More tests => 3; use Test::Mojo; -my $t = Test::Mojo->new(); +my $t = Test::Mojo->new; $t->get_ok('/')->status_is(200); my $location_is = sub {