22 lines
758 B
JavaScript
22 lines
758 B
JavaScript
// import {Flecks} from '@flecks/core';
|
|
// import {expect} from 'chai';
|
|
|
|
// describe('Layer', () => {
|
|
// let flecks;
|
|
// beforeEach(async () => {
|
|
// flecks = Flecks.mock({
|
|
// '@avocado/entity': require('@avocado/entity'),
|
|
// '@avocado/resource': require('@avocado/resource'),
|
|
// '@avocado/topdown': require('../src'),
|
|
// '@avocado/traits': require('@avocado/traits'),
|
|
// });
|
|
// await Promise.all(flecks.invokeFlat('@flecks/core/starting'));
|
|
// });
|
|
// it('has sane defaults', async () => {
|
|
// const {Layer} = flecks.avocado.resource.Resources;
|
|
// const layer = new Layer();
|
|
// expect(Object.keys(layer.entities).length).to.equal(0);
|
|
// expect(layer.tiles.size).to.deep.equal([0, 0]);
|
|
// });
|
|
// });
|