Sha256: 2c62f1347046f9093bd2b45e0a2e81b2db24d6c0135dbf0eb231c6271b086d54
Contents?: true
Size: 950 Bytes
Versions: 15
Compression:
Stored size: 950 Bytes
Contents
describe('Configuration', function() { var theConfigProvider, runFn; beforeEach(function() { angular.module('PraxisDocBrowser').config(function(ConfigurationProvider) { theConfigProvider = ConfigurationProvider; }); runFn = angular.module('PraxisDocBrowser')._runBlocks[0]; }); beforeEach(angular.mock.module('PraxisDocBrowser')); beforeEach(inject(function(Configuration) { Configuration; })); it('sets sensible defaults', function() { expect(theConfigProvider).toEqual(jasmine.objectContaining({ title: 'API Browser', versionLabel: 'API Version', expandChildren: true })); }); it('assigns all things from the provider unto the root scope', inject(function($injector, $rootScope) { $injector.invoke(runFn); expect($rootScope).toEqual(jasmine.objectContaining({ title: 'API Browser', versionLabel: 'API Version', expandChildren: true })); })); });
Version data entries
15 entries across 15 versions & 1 rubygems