Skip to content
This repository has been archived by the owner on Mar 13, 2021. It is now read-only.

Commit

Permalink
Create stub tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ed-asriyan committed Sep 15, 2019
1 parent 972ad08 commit e5caf7b
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,3 @@ package.json.ember-try

# idea
.idea

# m4m tests
tests/**/*
10 changes: 10 additions & 0 deletions tests/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CLOSE THIS WINDOW</title>
</head>
<body>

</body>
</html>
13 changes: 13 additions & 0 deletions tests/unit/models/account-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import {module, test} from 'qunit';
import {setupTest} from 'ember-qunit';

module('Unit | Model | account', function(hooks) {
setupTest(hooks);

// Replace this with your real tests.
test('it exists', function(assert) {
const store = this.owner.lookup('service:store'); // eslint-disable-line no-invalid-this
const model = store.createRecord('account', {});
assert.ok(model);
});
});
11 changes: 11 additions & 0 deletions tests/unit/routes/account/company-account-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 | account/company-account', function(hooks) {
setupTest(hooks);

test('it exists', function(assert) {
const route = this.owner.lookup('route:account/company-account'); // eslint-disable-line no-invalid-this
assert.ok(route);
});
});
11 changes: 11 additions & 0 deletions tests/unit/routes/account/company-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 | account/company', function(hooks) {
setupTest(hooks);

test('it exists', function(assert) {
const route = this.owner.lookup('route:account/company'); // eslint-disable-line no-invalid-this
assert.ok(route);
});
});

0 comments on commit e5caf7b

Please sign in to comment.