Skip to content

Commit

Permalink
test(login-toolbar): create unit tests (needed to use jquery in the t…
Browse files Browse the repository at this point in the history
…ests to get selectors)
  • Loading branch information
petebacondarwin committed Feb 28, 2013
1 parent 08fef0e commit 0c24e02
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/common/authentication/login/toolbar.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<li ng-show="currentUser">
<a href="#">{{userInfo().firstName}} {{userInfo().lastName}}</a>
</li>
<li ng-show="isAuthenticated()">
<li ng-show="isAuthenticated()" class="logout">
<form class="navbar-form">
<button class="btn" ng-click="logout()">Log out</button>
</form>
</li>
<li ng-hide="isAuthenticated()">
<li ng-hide="isAuthenticated()" class="login">
<form class="navbar-form">
<button class="btn" ng-click="login()">Log in</button>
</form>
Expand Down
1 change: 1 addition & 0 deletions client/test/config/unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ basePath = '../..';
files = [
JASMINE,
JASMINE_ADAPTER,
'vendor/jquery/jquery.js',
'vendor/angular/angular.js',
'vendor/mongolab/mongolab-resource.js',
'test/vendor/angular/angular-mocks.js',
Expand Down
3 changes: 3 additions & 0 deletions client/test/unit/app/login/login-form.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
describe('login-form', function() {

});

0 comments on commit 0c24e02

Please sign in to comment.