window = {};
var assert = require('assert');
var model = require('../../lib/model')({
    memory: true,
    noConnect: true
});

describe('Model', function () {
    describe('interface', function () {
        it('should expose expected objects', function () {
            assert.equal(typeof model.data.history, 'object');
            assert.equal(typeof model.data.user, 'object');
            assert.equal(typeof model.data.apps, 'object');
        });

        it('should expose expected functions', function () {
            assert.equal(typeof model.restore, 'function');
            assert.equal(typeof model.save, 'function');
            assert.equal(typeof model.observe, 'function');
        });
    });

    describe('first run', function () {
        it('should have the expected history', function () {
            assert.deepEqual(model.data.history, {
                ftu: true,
                path: '/ftu'
            });
        });

        it('should have the expected user', function () {
            // @todo
            assert.deepEqual(model.data.user, {});
        });

        it('should have the expected apps', function () {
            // @todo
            assert.equal(model.data.apps.length, 0);
        });
    });
});

@@ -911,19 +911,23 @@
 path: '/
-ftu
+sign-in
 '%0A      

fix tests