fix setup, add test
This commit is contained in:
parent
4c5d3883e1
commit
8d3d35ff83
2 changed files with 9 additions and 1 deletions
|
|
@ -73,6 +73,14 @@ describe("Unit: Controllers", function() {
|
|||
expect(array.length).equal(n);
|
||||
});
|
||||
});
|
||||
describe('#create', function() {
|
||||
it('should work with invalid form', function() {
|
||||
var form = {
|
||||
$invalid: true
|
||||
};
|
||||
scope.create(form);
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue