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

readme enhancement +++ and some cleaning on js files

parent bc297880
...@@ -4,16 +4,13 @@ ...@@ -4,16 +4,13 @@
##Get Ready For Development ##Get Ready For Development
1. Get Repo 1. Get Repo `git clone git@github.com:zetaops/zaerp-ui.git`
```
git clone git@hdjskdhajsk
```
*if you are not familiar to git follow these guides:* *if you are not familiar to git follow these guides:*
- https://git-scm.com/doc -https://git-scm.com/doc
- https://try.github.io/levels/1/challenges/1 -https://try.github.io/levels/1/challenges/1
2. Download and Install nodejs: 2. Download and Install nodejs:
* https://nodejs.org/download/ *https://nodejs.org/download/
3. Install Bower 3. Install Bower
......
...@@ -76,9 +76,7 @@ login.controller('LoginCtrl', function ($scope, $q, $timeout, $http, $location, ...@@ -76,9 +76,7 @@ login.controller('LoginCtrl', function ($scope, $q, $timeout, $http, $location,
$scope.onSubmit = function(form){ $scope.onSubmit = function(form){
$scope.$broadcast('schemaFormValidate'); $scope.$broadcast('schemaFormValidate');
if (form.$valid){ if (form.$valid){
var credentials = {email: form.email.$modelValue, password: form.password.$modelValue}; var credentials = {email: form.email.$modelValue, password: form.password.$modelValue};
console.log(form);
LoginService.login(credentials); LoginService.login(credentials);
} }
else { else {
......
...@@ -61,7 +61,7 @@ describe('zaerp.login module', function () { ...@@ -61,7 +61,7 @@ describe('zaerp.login module', function () {
var cred = {email: 'test@test.com', password: 'password'}; var cred = {email: 'test@test.com', password: 'password'};
LoginService.login(cred) LoginService.login(cred)
.then(function(data) { .then(function(data) {
expect(data.id).not.toBe(null); expect(data).not.toBe(null);
}); });
$httpBackend.flush(); $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