Skip to content

Commit

Permalink
Remove some parens on no-arg new
Browse files Browse the repository at this point in the history
  • Loading branch information
briandfoy committed Mar 6, 2023
1 parent d1e8523 commit 72e10ce
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion t/auto_index.t
Expand Up @@ -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);
2 changes: 1 addition & 1 deletion t/default.t
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion t/dir.t
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion t/dir_index.t
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion t/dir_page.t
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion t/file.t
Expand Up @@ -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$/);
2 changes: 1 addition & 1 deletion t/handle.t
Expand Up @@ -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 {
Expand Down

0 comments on commit 72e10ce

Please sign in to comment.