UNPKG

@spearwolf/twopoint5d

Version:

a library to create 2.5d realtime graphics and pixelart with three.js

15 lines 672 B
import { describe, expect, it } from 'vitest'; import { ParallaxProjection } from './ParallaxProjection.js'; import { Stage2D } from './Stage2D.js'; describe('Stage2D', () => { it('has a scene by default', () => { const stage = new Stage2D(new ParallaxProjection('xz|top-left', { fit: 'contain', width: 600 })); expect(stage.scene).toBeDefined(); }); it('after call to resize() a camera is created (by projection)', () => { const stage = new Stage2D(new ParallaxProjection('xz|top-left', { pixelZoom: 2 })); stage.resize(320, 240); expect(stage.camera).toBeDefined(); }); }); //# sourceMappingURL=Stage2D.spec.js.map