"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ava_1 = require("ava");
var cursor_1 = require("../utils/cursor");
var canvas_1 = require("./canvas");
ava_1.default('draw canvas', function (t) {
    var sky = {
        index: 1,
        placement: {
            type: 'Sky'
        },
        src: '',
        author: {
            name: ''
        }
    };
    var cursor = new cursor_1.default(1, 0, 'pen', [[sky], [sky]], 1);
    var origin = createSceneMap([[[0, 0, 0], [0, 0, 0], [0, 0, 0]]]);
    var expect = createSceneMap([[[0, 1, 0], [0, 1, 0], [0, 0, 0]]]);
    var result = canvas_1.draw(origin, cursor);
    t.not(origin, result, 'draw関数は Immutable でなければならない');
    t.is(result.tables.length, expect.tables.length);
    t.deepEqual(result.tables, expect.tables);
});
function createSceneMap(tables) {
    return {
        tables: tables,
        squares: []
    };
}
//# sourceMappingURL=canvas.spec.js.map