Skip to content

Commit

Permalink
fix: update readme to encourage non-duplicate test names
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north committed Jul 30, 2018
1 parent d841125 commit 2fff67d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ import { EmberTest } from 'ember-qunit-decorators/test-support';
@suite('Unit | Route | index')
export class IndexRouteTest extends EmberTest {

@test('it exists')
itWorksTest(assert: Assert) {
@test 'it exists'(assert: Assert) {
let route = this.owner.lookup('route:index');
assert.ok(route);
}
Expand All @@ -69,8 +68,7 @@ import { EmberRenderingTest } from "ember-qunit-decorators/test-support";
@suite("Integration | Helper | capitalize")
export class CapitalizeHelperTest extends EmberRenderingTest {

@test("it renders")
async itWorks(assert: Assert) {
@test async 'it renders'(assert: Assert) {
this.set("inputValue", "hello");

await render(hbs`{{capitalize inputValue}}`);
Expand All @@ -90,8 +88,7 @@ import { EmberApplicationTest } from 'ember-qunit-decorators/test-support';
@suite('Acceptance | index')
export class IndexAcceptanceTest extends EmberApplicationTest {

@test('visiting / ')
async doVisit(assert: Assert) {
@test async 'visiting / '(assert: Assert) {
await visit('/');

assert.equal(currentURL(), '/');
Expand Down

0 comments on commit 2fff67d

Please sign in to comment.