stackviz/test/unit/constants_spec.js
Austin Clark b1e9f75e6d Fix application name in constants_spec.js
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
2015-10-22 10:34:09 -06:00

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');
});
});