Skip to content

Instantly share code, notes, and snippets.

@davisford
Created December 10, 2012 19:48
Show Gist options
  • Select an option

  • Save davisford/4252863 to your computer and use it in GitHub Desktop.

Select an option

Save davisford/4252863 to your computer and use it in GitHub Desktop.
'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