/test/event.ts
import { assert } from 'chai';
import { GameEvent } from '../src/event';

describe('GameEvent', function() {
    it('should have a valid id', function() {
        const e = new GameEvent();

        assert.isString(e.id);
    });

    it('should store and load', function() {
        const e1 = new GameEvent();
        e1.title = 'test';
        e1.script = 'say "test"';
        const obj = e1.store();
        const e2 = new GameEvent();
        e2.load(obj);
        assert.deepEqual(e1, e2);
    });
});