Skip to content

Commit

Permalink
fix setup warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gedaiu committed Jul 15, 2023
1 parent bc4ad2d commit 08f2bf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/trial/discovery/spec.d
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ void before(T)(T setup)
/// Define a function that will be ran before each test
void beforeEach(T)(T setup)
{
beforeList ~= { setup(); };
beforeList ~= { cast(void) setup(); };
}

/// Define a function that will be ran after each test
void afterEach(T)(T setup)
{
afterList ~= { setup(); };
afterList ~= { cast(void) setup(); };
}

/// Define a function that will be ran after all the tests were ran
Expand Down

0 comments on commit 08f2bf2

Please sign in to comment.