"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var chai_1 = require("chai");
var getInitialOnboardingLocation_1 = require("../../src/app/getInitialOnboardingLocation");
describe('UNIT: getInitialOnboardingLocation', function () {
    var createTestWalletState = function (kind, wallet) { return ({ kind: kind, wallet: wallet }); };
    it('None', function () {
        var walletState = createTestWalletState('None');
        chai_1.expect(getInitialOnboardingLocation_1.getInitialOnboardingLocation(walletState)).to.eq('/selector');
    });
    it('Future', function () {
        var walletState = createTestWalletState('Future');
        chai_1.expect(getInitialOnboardingLocation_1.getInitialOnboardingLocation(walletState)).to.eq('/create');
    });
    it('Deploying', function () {
        var walletState = createTestWalletState('Deploying');
        chai_1.expect(getInitialOnboardingLocation_1.getInitialOnboardingLocation(walletState)).to.eq('/create');
    });
    it('Connecting', function () {
        var expectedEnsName = 'example.mylogin.eth';
        var walletState = createTestWalletState('Connecting', { name: expectedEnsName });
        chai_1.expect(getInitialOnboardingLocation_1.getInitialOnboardingLocation(walletState)).to.deep.eq({
            pathname: '/connectFlow/emoji',
            state: { name: expectedEnsName },
        });
    });
    it('Deployed', function () {
        var walletState = createTestWalletState('Deployed');
        chai_1.expect(function () { return getInitialOnboardingLocation_1.getInitialOnboardingLocation(walletState); }).to.throw('Unexpected wallet state: Deployed');
    });
});
//# sourceMappingURL=getInitialOnboardingLocation.unit.test.js.map