Created
December 10, 2012 19:48
-
-
Save davisford/4252863 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| /*global describe, beforeEach, it, expect, chai, inject */ | |
| describe('controller tests', function () { | |
| var $scope, $controller, assert = chai.assert, | |
| expect = chai.expect, | |
| should = chai.should(); | |
| beforeEach(module('app')); | |
| beforeEach(inject(function ($injector) { | |
| $scope = $injector.get('$rootScope'); | |
| $controller = $injector.get('$controller'); | |
| })); | |
| describe('NavCtrl', function () { | |
| it('should run a test', function () { | |
| var ctrl = $controller('NavCtrl', {}); | |
| console.log('controller: ', ctrl); | |
| }); | |
| }); | |
| }); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment