'use strict';

describe('TestComponent', function () {
    var componentController;

    beforeEach(module('APPLICATION'));

    beforeEach(inject(function ($componentController) {
        componentController = $componentController('testComponent', null, {
            test: {
                data: 'data'
            }
        });
    }));

    it('is defined', function () {
        expect(componentController).toBeDefined();
    });

    describe('when called', function () {
        it('modifyTestData modifies test data', function () {
            componentController.data = 'data';

            componentController.modifyTestData();

            expect(componentController.data).toBe(' edited in the component controller');
        });
    });
});
