Sha256: ea8d16734cb11aeadfee6e335576f69314bca90754620685721a44fcbc6a37d5

Contents?: true

Size: 1.23 KB

Versions: 21

Compression:

Stored size: 1.23 KB

Contents

import {appName} from 'config';
import {} from '../../../src/app/auth/auth.js';
import {} from '../../support/testStates.js';
import {LoggedInOnlyState} from "stateClasses";

describe('confirmations states', function() {

  var $rootScope, $state, $injector, state, $auth, $q;

  beforeEach(function() {

    module(`${appName}.testStates`);

    module(`${appName}.auth.confirmations`);

    inject(function(_$rootScope_, _$state_, _$injector_, $templateCache, _$q_, _$auth_) {
      $rootScope = _$rootScope_;
      $state = _$state_;
      $injector = _$injector_;
      $q = _$q_;

      $auth = _$auth_;

      $templateCache.put('auth/confirmations/confirmations-success.tpl.html', '');
    });
  });

  describe("confirmationsSuccess", function() {

    beforeEach(function() {
      state = $state.get('root.inner.confirmationsSuccess');
    });

    it('should extend LoggedInOnlyState', function() {
      expect(state instanceof LoggedInOnlyState).toBe(true);
    });

    it('should respond to URL', function() {
      expect($state.href(state)).toEqual('#/confirmed');
    });

    it('should render the sessions template', function() {
      expect(state.templateUrl).toEqual('auth/confirmations/confirmations-success.tpl.html');
    });
  });
});

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
xing-framework-1.0.0.pre.beta.1 default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js
xing-framework-1.0.0.pre.beta default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js
xing-framework-1.0.0.pre.alpha default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js
xing-framework-0.3.2 default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js
xing-framework-0.3.1 default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js
xing-framework-0.3.0 default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js
xing-framework-0.2.9 default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js
xing-framework-0.2.9.beta1 default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js
xing-framework-0.2.8 default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js
xing-framework-0.2.8.beta1 default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js
xing-framework-0.2.7 default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js
xing-framework-0.2.7.pre.beta1 default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js
xing-framework-0.2.6 default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js
xing-framework-0.2.5 default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js
xing-framework-0.2.4 default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js
xing-framework-0.2.3 default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js
xing-framework-0.2.2 default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js
xing-framework-0.2.1 default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js
xing-framework-0.2.0 default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js
xing-framework-0.0.3 default_configuration/base_app/frontend/test/auth/confirmations/confirmationsStates.js