Merge pull request #773 from maraoz/ui/unify-notifications

Unify notification systems
This commit is contained in:
Matias Alejo Garcia 2014-06-26 23:27:56 -03:00
commit 16541f413e
11 changed files with 103 additions and 139 deletions

View file

@ -12,6 +12,9 @@ saveAs = function(o) {
describe("Unit: Controllers", function() {
var invalidForm = {
$invalid: true
};
var scope;
@ -73,6 +76,11 @@ describe("Unit: Controllers", function() {
expect(array.length).equal(n);
});
});
describe('#create', function() {
it('should work with invalid form', function() {
scope.create(invalidForm);
});
});
});
@ -321,4 +329,42 @@ describe("Unit: Controllers", function() {
});
});
describe('Import Controller', function() {
var what;
beforeEach(inject(function($controller, $rootScope) {
scope = $rootScope.$new();
what = $controller('ImportController', {
$scope: scope,
});
}));
it('should exist', function() {
should.exist(what);
});
});
describe('Signin Controller', function() {
var what;
beforeEach(inject(function($controller, $rootScope) {
scope = $rootScope.$new();
what = $controller('SigninController', {
$scope: scope,
});
}));
it('should exist', function() {
should.exist(what);
});
describe('#open', function() {
it('should work with invalid form', function() {
scope.open(invalidForm);
});
});
describe('#join', function() {
it('should work with invalid form', function() {
scope.join(invalidForm);
});
});
});
});