Skip to content

Commit

Permalink
move beforeAll to below helper functions
Browse files Browse the repository at this point in the history
follows the format of the other test classes
  • Loading branch information
kaelad02 committed Apr 5, 2024
1 parent 9500003 commit 040ff81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/messages.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ import {
} from "../src/messages";
import commonTestInit from "./common.js";

beforeAll(() => {
commonTestInit();
});

function createActorWithEffects(...keyValuePairs) {
const appliedEffects = keyValuePairs.map(createEffect);
return {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 040ff81

Please sign in to comment.