Skip to content

Instantly share code, notes, and snippets.

@zdwolfe
Last active December 26, 2015 22:19
Show Gist options
  • Save zdwolfe/7221982 to your computer and use it in GitHub Desktop.
Save zdwolfe/7221982 to your computer and use it in GitHub Desktop.
'use strict';
describe('Controller: CourseCtrl', function () {
// load the controller's module
beforeEach(module('myApp'));
var CourseCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
CourseCtrl = $controller('CourseCtrl', {
$scope: scope
});
}));
it('should should transition to main.course', inject(function ($state, $q) {
$state.transitionTo('main.course');
$q.flush();
}));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment