This repository has been archived by the owner on Dec 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #216 from typed-ember/bump-ember-cli
chore(deps): upgrade Ember CLI to latest
- Loading branch information
Showing
170 changed files
with
2,974 additions
and
7,883 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 7 additions & 18 deletions
25
blueprints/acceptance-test/mocha-files/tests/acceptance/__name__-test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,13 @@ | ||
import { describe, it, beforeEach, afterEach } from 'mocha'; | ||
import { describe, it } from 'mocha'; | ||
import { expect } from 'chai'; | ||
import startApp from '<%= dasherizedPackageName %>/tests/helpers/start-app'; | ||
<% if (destroyAppExists) { %>import destroyApp from '<%= dasherizedPackageName %>/tests/helpers/destroy-app';<% } else { %>import { run } from '@ember/runloop';<% } %> | ||
import { setupApplicationTest } from 'ember-mocha'; | ||
import { visit, currentURL } from '@ember/test-helpers'; | ||
|
||
describe('<%= friendlyTestName %>', function() { | ||
let application; | ||
setupApplicationTest(); | ||
|
||
beforeEach(function() { | ||
application = startApp(); | ||
}); | ||
|
||
afterEach(function() { | ||
<% if (destroyAppExists) { %>destroyApp(application);<% } else { %>run(application, 'destroy');<% } %> | ||
}); | ||
|
||
it('can visit /<%= dasherizedModuleName %>', function() { | ||
visit('/<%= dasherizedModuleName %>'); | ||
|
||
return andThen(() => { | ||
expect(currentURL()).to.equal('/<%= dasherizedModuleName %>'); | ||
}); | ||
it('can visit /<%= dasherizedModuleName %>', async function() { | ||
await visit('/<%= dasherizedModuleName %>'); | ||
expect(currentURL()).to.equal('/<%= dasherizedModuleName %>'); | ||
}); | ||
}); |
13 changes: 0 additions & 13 deletions
13
blueprints/acceptance-test/mocha-rfc-232-files/tests/acceptance/__name__-test.ts
This file was deleted.
Oops, something went wrong.
13 changes: 7 additions & 6 deletions
13
blueprints/acceptance-test/qunit-files/tests/acceptance/__name__-test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import { test } from 'qunit'; | ||
import moduleForAcceptance from '<%= testFolderRoot %>/tests/helpers/module-for-acceptance'; | ||
import { module, test } from 'qunit'; | ||
import { visit, currentURL } from '@ember/test-helpers'; | ||
import { setupApplicationTest } from 'ember-qunit'; | ||
|
||
moduleForAcceptance('<%= friendlyTestName %>'); | ||
module('<%= friendlyTestName %>', function(hooks) { | ||
setupApplicationTest(hooks); | ||
|
||
test('visiting /<%= dasherizedModuleName %>', function(assert) { | ||
visit('/<%= dasherizedModuleName %>'); | ||
test('visiting /<%= dasherizedModuleName %>', async function(assert) { | ||
await visit('/<%= dasherizedModuleName %>'); | ||
|
||
andThen(function() { | ||
assert.equal(currentURL(), '/<%= dasherizedModuleName %>'); | ||
}); | ||
}); |
13 changes: 0 additions & 13 deletions
13
blueprints/acceptance-test/qunit-rfc-232-files/tests/acceptance/__name__-test.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
blueprints/adapter-test/qunit-files/tests/unit/__path__/__test__.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { moduleFor, test } from 'ember-qunit'; | ||
import { module, test } from 'qunit'; | ||
import { setupTest } from 'ember-qunit'; | ||
|
||
moduleFor('adapter:<%= dasherizedModuleName %>', '<%= friendlyTestDescription %>', { | ||
// Specify the other units that are required for this test. | ||
// needs: ['serializer:foo'] | ||
}); | ||
module('<%= friendlyTestDescription %>', function(hooks) { | ||
setupTest(hooks); | ||
|
||
// Replace this with your real tests. | ||
test('it exists', function(assert) { | ||
let adapter = this.subject(); | ||
assert.ok(adapter); | ||
// Replace this with your real tests. | ||
test('it exists', function(assert) { | ||
let adapter = this.owner.lookup('adapter:<%= dasherizedModuleName %>'); | ||
assert.ok(adapter); | ||
}); | ||
}); |
12 changes: 0 additions & 12 deletions
12
blueprints/adapter-test/qunit-rfc-232-files/tests/unit/__path__/__test__.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
blueprints/component-test/mocha-0.12-files/__root__/__testType__/__path__/__test__.ts
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
blueprints/component-test/mocha-files/__root__/__testType__/__path__/__test__.ts
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
blueprints/component-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.ts
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
blueprints/component-test/qunit-files/__root__/__testType__/__path__/__test__.ts
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
blueprints/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.