tshirtdesignSpec.js 676 Bytes
/*jshint unused: vars */
define(['angular', 'angular-mocks', 'app'], function(angular, mocks, app) {
  'use strict';

  describe('Controller: TshirtdesignCtrl', function () {

    // load the controller's module
    beforeEach(module('tshatsApp'));

    var TshirtdesignCtrl,
      scope;

    // Initialize the controller and a mock scope
    beforeEach(inject(function ($controller, $rootScope) {
      scope = $rootScope.$new();
      TshirtdesignCtrl = $controller('TshirtdesignCtrl', {
        $scope: scope
      });
    }));

    it('should attach a list of awesomeThings to the scope', function () {
      expect(scope.awesomeThings.length).toBe(3);
    });
  });
});