Skip to content

Instantly share code, notes, and snippets.

@szmeku
Created August 7, 2014 14:00
Show Gist options
  • Save szmeku/ed6661c267703af2a9d6 to your computer and use it in GitHub Desktop.
Save szmeku/ed6661c267703af2a9d6 to your computer and use it in GitHub Desktop.
describe('Something', function () {
var $controller, $scope;
beforeEach(module('providersApp'));
beforeEach(inject(function (_$controller_, _$filter_) {
$controller = _$controller_;
$filter = _$filter_;
var ctrl = $controller('HolidayCtrl', {$scope: $scope, holidays: {}});
}));
describe('$scope.', function () {
it('removeAlert', function () {
$scope.removeAlert();
expect($scope.alert).toBeNull();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment