b1e9f75e6d
The unit test suite was failing due to a test in constants_spec.js that expected the application name (as defined in constants.js) to be "Example Application". This commit changes the expected value in the test to "StackViz". Change-Id: Ia7b97fdaae3560a27d944c81a9a245feafde3252
28 lines
503 B
JavaScript
28 lines
503 B
JavaScript
/*global angular */
|
|
|
|
'use strict';
|
|
|
|
describe('Unit: Constants', function() {
|
|
|
|
var constants;
|
|
|
|
beforeEach(function() {
|
|
// instantiate the app module
|
|
angular.mock.module('app');
|
|
|
|
// mock the directive
|
|
angular.mock.inject(function(AppSettings) {
|
|
constants = AppSettings;
|
|
});
|
|
});
|
|
|
|
it('should exist', function() {
|
|
expect(constants).toBeDefined();
|
|
});
|
|
|
|
it('should have an application name', function() {
|
|
expect(constants.appTitle).toEqual('StackViz');
|
|
});
|
|
|
|
});
|