Skip to content

Commit 3c2ecc2

Browse files
committed
chore: make test cases pass
1 parent c235a4d commit 3c2ecc2

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

__tests__/ecs/coordinates.spec.ts

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ import {
2424
system,
2525
API,
2626
Name,
27+
ZIndex,
28+
ComputeZIndex,
2729
} from '../../packages/ecs/src';
2830
import { NodeJSAdapter, sleep } from '../utils';
2931

@@ -38,6 +40,7 @@ describe('Coordinates', () => {
3840

3941
const MyPlugin: Plugin = () => {
4042
system(PreStartUp)(StartUpSystem);
43+
system((s) => s.before(ComputeZIndex))(StartUpSystem);
4144
};
4245

4346
class StartUpSystem extends System {
@@ -59,6 +62,7 @@ describe('Coordinates', () => {
5962
Circle,
6063
Visibility,
6164
Name,
65+
ZIndex,
6266
).write,
6367
);
6468

__tests__/ecs/ellipse.spec.ts

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ import {
2525
API,
2626
Name,
2727
Ellipse,
28+
ZIndex,
29+
ComputeZIndex,
2830
} from '../../packages/ecs/src';
2931
import { NodeJSAdapter, sleep } from '../utils';
3032

@@ -42,6 +44,7 @@ describe('Ellipse', () => {
4244

4345
const MyPlugin: Plugin = () => {
4446
system(PreStartUp)(StartUpSystem);
47+
system((s) => s.before(ComputeZIndex))(StartUpSystem);
4548
};
4649

4750
class StartUpSystem extends System {
@@ -63,6 +66,7 @@ describe('Ellipse', () => {
6366
Ellipse,
6467
Visibility,
6568
Name,
69+
ZIndex,
6670
).write,
6771
);
6872

__tests__/ecs/hierarchy.spec.ts

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ import {
2626
system,
2727
API,
2828
Name,
29+
ZIndex,
30+
ComputeZIndex,
2931
} from '../../packages/ecs/src';
3032
import { NodeJSAdapter, sleep } from '../utils';
3133

@@ -43,6 +45,7 @@ describe('Hierarchy', () => {
4345

4446
const MyPlugin: Plugin = () => {
4547
system(PreStartUp)(StartUpSystem);
48+
system((s) => s.before(ComputeZIndex))(StartUpSystem);
4649
};
4750

4851
class StartUpSystem extends System {
@@ -64,6 +67,7 @@ describe('Hierarchy', () => {
6467
Circle,
6568
Visibility,
6669
Name,
70+
ZIndex,
6771
).write,
6872
);
6973

__tests__/ecs/rect.spec.ts

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ import {
2626
Name,
2727
Rect,
2828
DropShadow,
29+
ZIndex,
30+
ComputeZIndex,
2931
} from '../../packages/ecs/src';
3032
import { NodeJSAdapter, sleep } from '../utils';
3133

@@ -43,6 +45,7 @@ describe('Rect', () => {
4345

4446
const MyPlugin: Plugin = () => {
4547
system(PreStartUp)(StartUpSystem);
48+
system((s) => s.before(ComputeZIndex))(StartUpSystem);
4649
};
4750

4851
class StartUpSystem extends System {
@@ -65,6 +68,7 @@ describe('Rect', () => {
6568
Visibility,
6669
Name,
6770
DropShadow,
71+
ZIndex,
6872
).write,
6973
);
7074

0 commit comments

Comments
 (0)