about.js 561 B

1234567891011121314151617181920212223
  1. 'use strict';
  2. describe('Controller: AboutCtrl', function () {
  3. // load the controller's module
  4. beforeEach(module('odooMobileDocsApp'));
  5. var AboutCtrl,
  6. scope;
  7. // Initialize the controller and a mock scope
  8. beforeEach(inject(function ($controller, $rootScope) {
  9. scope = $rootScope.$new();
  10. AboutCtrl = $controller('AboutCtrl', {
  11. $scope: scope
  12. // place here mocked dependencies
  13. });
  14. }));
  15. it('should attach a list of awesomeThings to the scope', function () {
  16. expect(AboutCtrl.awesomeThings.length).toBe(3);
  17. });
  18. });