From 3f2522cce6cb3d42d4ba8a8ac07f3178f3d81669 Mon Sep 17 00:00:00 2001 From: cha0s Date: Sat, 13 Jan 2024 03:10:51 -0600 Subject: [PATCH] refactor: Flecks.from --- packages/entity/test/alive.js | 2 +- packages/entity/test/directional.js | 2 +- packages/entity/test/entity.js | 2 +- packages/entity/test/json.js | 2 +- packages/entity/test/mobile.js | 2 +- packages/entity/test/perishable.js | 2 +- packages/entity/test/positioned.js | 2 +- packages/entity/test/spawner.js | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/entity/test/alive.js b/packages/entity/test/alive.js index 60956a1..7b89172 100644 --- a/packages/entity/test/alive.js +++ b/packages/entity/test/alive.js @@ -6,7 +6,7 @@ import {expect} from 'chai'; let flecks; let Entity; beforeEach(async () => { - flecks = new Flecks({ + flecks = Flecks.from({ flecks: { '@avocado/behavior': require('@avocado/behavior'), '@avocado/entity': require('@avocado/entity'), diff --git a/packages/entity/test/directional.js b/packages/entity/test/directional.js index e5bce3d..e29748b 100644 --- a/packages/entity/test/directional.js +++ b/packages/entity/test/directional.js @@ -6,7 +6,7 @@ import {expect} from 'chai'; let flecks; let Entity; beforeEach(async () => { - flecks = new Flecks({ + flecks = Flecks.from({ flecks: { '@avocado/entity': require('@avocado/entity'), '@avocado/graphics': require('@avocado/graphics'), diff --git a/packages/entity/test/entity.js b/packages/entity/test/entity.js index 6436aff..442da1c 100644 --- a/packages/entity/test/entity.js +++ b/packages/entity/test/entity.js @@ -6,7 +6,7 @@ import {expect} from 'chai'; let flecks; let Entity; beforeEach(async () => { - flecks = new Flecks({ + flecks = Flecks.from({ flecks: { '@avocado/entity': require('@avocado/entity'), '@avocado/graphics': require('@avocado/graphics'), diff --git a/packages/entity/test/json.js b/packages/entity/test/json.js index f711462..ec02afb 100644 --- a/packages/entity/test/json.js +++ b/packages/entity/test/json.js @@ -5,7 +5,7 @@ import {expect} from 'chai'; let flecks; let Entity; beforeEach(async () => { - flecks = new Flecks({ + flecks = Flecks.from({ flecks: { '@avocado/behavior': require('@avocado/behavior'), '@avocado/entity': require('@avocado/entity'), diff --git a/packages/entity/test/mobile.js b/packages/entity/test/mobile.js index a7aff23..a3dc01e 100644 --- a/packages/entity/test/mobile.js +++ b/packages/entity/test/mobile.js @@ -5,7 +5,7 @@ import {expect} from 'chai'; let flecks; let Entity; beforeEach(async () => { - flecks = new Flecks({ + flecks = Flecks.from({ flecks: { '@avocado/entity': require('@avocado/entity'), '@avocado/graphics': require('@avocado/graphics'), diff --git a/packages/entity/test/perishable.js b/packages/entity/test/perishable.js index 13fb618..1663014 100644 --- a/packages/entity/test/perishable.js +++ b/packages/entity/test/perishable.js @@ -5,7 +5,7 @@ import {expect} from 'chai'; let flecks; let Entity; beforeEach(async () => { - flecks = new Flecks({ + flecks = Flecks.from({ flecks: { '@avocado/entity': require('@avocado/entity'), '@avocado/graphics': require('@avocado/graphics'), diff --git a/packages/entity/test/positioned.js b/packages/entity/test/positioned.js index bdec516..5f35548 100644 --- a/packages/entity/test/positioned.js +++ b/packages/entity/test/positioned.js @@ -5,7 +5,7 @@ import {expect} from 'chai'; let flecks; let Entity; beforeEach(async () => { - flecks = new Flecks({ + flecks = Flecks.from({ flecks: { '@avocado/entity': require('@avocado/entity'), '@avocado/graphics': require('@avocado/graphics'), diff --git a/packages/entity/test/spawner.js b/packages/entity/test/spawner.js index be6c70a..e40d5d6 100644 --- a/packages/entity/test/spawner.js +++ b/packages/entity/test/spawner.js @@ -6,7 +6,7 @@ let flecks; let Entity; let EntityList; beforeEach(async () => { - flecks = new Flecks({ + flecks = Flecks.from({ flecks: { '@avocado/behavior': require('@avocado/behavior'), '@avocado/entity': require('@avocado/entity'),