Skip to content

Commit

Permalink
feat: Generate login route
Browse files Browse the repository at this point in the history
  • Loading branch information
Esteban Lara committed Jun 2, 2019
1 parent c7b7861 commit 1ca57d1
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Router.map(function() {
this.route('secrets', {
path: '/'
});
this.route('login');
});

export default Router;
4 changes: 4 additions & 0 deletions app/routes/login.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Route from '@ember/routing/route';

export default Route.extend({
});
1 change: 1 addition & 0 deletions app/templates/login.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{outlet}}
11 changes: 11 additions & 0 deletions tests/unit/routes/login-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';

module('Unit | Route | login', function(hooks) {
setupTest(hooks);

test('it exists', function(assert) {
let route = this.owner.lookup('route:login');
assert.ok(route);
});
});

0 comments on commit 1ca57d1

Please sign in to comment.