Skip to content

Commit

Permalink
ember generate route count
Browse files Browse the repository at this point in the history
  • Loading branch information
peternowee committed Aug 4, 2023
1 parent 5fc23bc commit dabb247
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,4 +10,5 @@ Router.map(function () {
this.route('people');
this.route('individual-products');
this.route('transactions');
this.route('count');
});
3 changes: 3 additions & 0 deletions app/routes/count.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Route from '@ember/routing/route';

export default class CountRoute extends Route {}
2 changes: 2 additions & 0 deletions app/templates/count.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{{page-title "Count"}}
{{outlet}}
11 changes: 11 additions & 0 deletions tests/unit/routes/count-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'frontend-hardware/tests/helpers';

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

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

0 comments on commit dabb247

Please sign in to comment.