From 040ff813553c90d096f5585dcf8bbe662341bf91 Mon Sep 17 00:00:00 2001 From: Chris Seieroe Date: Fri, 5 Apr 2024 12:13:33 -0700 Subject: [PATCH] move beforeAll to below helper functions follows the format of the other test classes --- test/messages.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/messages.test.js b/test/messages.test.js index 7d7ac12..e3d634c 100644 --- a/test/messages.test.js +++ b/test/messages.test.js @@ -9,10 +9,6 @@ import { } from "../src/messages"; import commonTestInit from "./common.js"; -beforeAll(() => { - commonTestInit(); -}); - function createActorWithEffects(...keyValuePairs) { const appliedEffects = keyValuePairs.map(createEffect); return { @@ -43,6 +39,10 @@ function createItem(actionType, abilityMod) { }; } +beforeAll(() => { + commonTestInit(); +}); + describe("AttackMessage no legit active effects", () => { test("attack with no active effects should not add a message", () => { const actor = createActorWithEffects();