Commit 8f170910 authored by Evren Kutar's avatar Evren Kutar

readme enhancement +++ and some cleaning on js files

parent bc297880
......@@ -4,16 +4,13 @@
##Get Ready For Development
1. Get Repo
```
git clone git@hdjskdhajsk
```
1. Get Repo `git clone git@github.com:zetaops/zaerp-ui.git`
*if you are not familiar to git follow these guides:*
- https://git-scm.com/doc
- https://try.github.io/levels/1/challenges/1
-https://git-scm.com/doc
-https://try.github.io/levels/1/challenges/1
2. Download and Install nodejs:
* https://nodejs.org/download/
*https://nodejs.org/download/
3. Install Bower
......
......@@ -76,9 +76,7 @@ login.controller('LoginCtrl', function ($scope, $q, $timeout, $http, $location,
$scope.onSubmit = function(form){
$scope.$broadcast('schemaFormValidate');
if (form.$valid){
var credentials = {email: form.email.$modelValue, password: form.password.$modelValue};
console.log(form);
LoginService.login(credentials);
}
else {
......
......@@ -61,7 +61,7 @@ describe('zaerp.login module', function () {
var cred = {email: 'test@test.com', password: 'password'};
LoginService.login(cred)
.then(function(data) {
expect(data.id).not.toBe(null);
expect(data).not.toBe(null);
});
$httpBackend.flush();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment