-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove blueprints for Mocha < 0.12. (#5225)
* Remove blueprints for Mocha < 0.12. ember-cli-mocha@0.12.0 was released quite some time ago (on 2016-11-23), and by all accounts has been well adopted. Supporting both mocha test blueprints indefinitely is untenable, and now seems like as good a time as any to drop the blueprints for the older syntax. Note: this does *not* remove support for anything, it merely makes it slightly less convienient to create new test files for adapter/model/serializer/transform objects when your application is using Mocha < 0.12. * Update to the latest ember-cli-version-checker. This is unblocked by removing the need to "Fake" the version checker in the blueprint test suite (the way ember-cli-blueprint-test-helpers fakes out ember-cli-version-checker@1 no longer works with ember-cli-version-checker@2).
- Loading branch information
Showing
15 changed files
with
54 additions
and
206 deletions.
There are no files selected for viewing
16 changes: 0 additions & 16 deletions
16
blueprints/adapter-test/mocha-0.12-files/tests/unit/__path__/__test__.js
This file was deleted.
Oops, something went wrong.
26 changes: 12 additions & 14 deletions
26
blueprints/adapter-test/mocha-files/tests/unit/__path__/__test__.js
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,18 +1,16 @@ | ||
import { expect } from 'chai'; | ||
import { describeModule, it } from 'ember-mocha'; | ||
import { describe, it } from 'mocha'; | ||
import { setupTest } from 'ember-mocha'; | ||
|
||
describeModule( | ||
'adapter:<%= dasherizedModuleName %>', | ||
'<%= friendlyTestDescription %>', | ||
{ | ||
describe('<%= friendlyTestDescription %>', function() { | ||
setupTest('adapter:<%= dasherizedModuleName %>', { | ||
// Specify the other units that are required for this test. | ||
// needs: ['serializer:foo'] | ||
}, | ||
function() { | ||
// Replace this with your real tests. | ||
it('exists', function() { | ||
let adapter = this.subject(); | ||
expect(adapter).to.be.ok; | ||
}); | ||
} | ||
); | ||
}); | ||
|
||
// Replace this with your real tests. | ||
it('exists', function() { | ||
let adapter = this.subject(); | ||
expect(adapter).to.be.ok; | ||
}); | ||
}); |
17 changes: 0 additions & 17 deletions
17
blueprints/model-test/mocha-0.12-files/tests/unit/__path__/__test__.js
This file was deleted.
Oops, something went wrong.
28 changes: 13 additions & 15 deletions
28
blueprints/model-test/mocha-files/tests/unit/__path__/__test__.js
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,19 +1,17 @@ | ||
import { expect } from 'chai'; | ||
import { describeModel, it } from 'ember-mocha'; | ||
import { describe, it } from 'mocha'; | ||
import { setupModelTest } from 'ember-mocha'; | ||
|
||
describeModel( | ||
'<%= dasherizedModuleName %>', | ||
'<%= friendlyDescription %>', | ||
{ | ||
describe('<%= friendlyDescription %>', function() { | ||
setupModelTest('<%= dasherizedModuleName %>', { | ||
// Specify the other units that are required for this test. | ||
<%= typeof needs !== 'undefined' ? needs : '' %> | ||
}, | ||
function() { | ||
// Replace this with your real tests. | ||
it('exists', function() { | ||
let model = this.subject(); | ||
// var store = this.store(); | ||
expect(model).to.be.ok; | ||
}); | ||
} | ||
); | ||
}); | ||
|
||
// Replace this with your real tests. | ||
it('exists', function() { | ||
let model = this.subject(); | ||
// var store = this.store(); | ||
expect(model).to.be.ok; | ||
}); | ||
}); |
19 changes: 0 additions & 19 deletions
19
blueprints/serializer-test/mocha-0.12-files/tests/unit/__path__/__test__.js
This file was deleted.
Oops, something went wrong.
28 changes: 13 additions & 15 deletions
28
blueprints/serializer-test/mocha-files/tests/unit/__path__/__test__.js
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,21 +1,19 @@ | ||
import { expect } from 'chai'; | ||
import { describeModel, it } from 'ember-mocha'; | ||
import { describe, it } from 'mocha'; | ||
import { setupModelTest } from 'ember-mocha'; | ||
|
||
describeModel( | ||
'<%= dasherizedModuleName %>', | ||
'<%= friendlyTestDescription %>', | ||
{ | ||
describe('<%= friendlyTestDescription %>', function() { | ||
setupModelTest('<%= dasherizedModuleName %>', { | ||
// Specify the other units that are required for this test. | ||
needs: ['serializer:<%= dasherizedModuleName %>'] | ||
}, | ||
function() { | ||
// Replace this with your real tests. | ||
it('serializes records', function() { | ||
let record = this.subject(); | ||
}); | ||
|
||
let serializedRecord = record.serialize(); | ||
// Replace this with your real tests. | ||
it('serializes records', function() { | ||
let record = this.subject(); | ||
|
||
expect(serializedRecord).to.be.ok; | ||
}); | ||
} | ||
); | ||
let serializedRecord = record.serialize(); | ||
|
||
expect(serializedRecord).to.be.ok; | ||
}); | ||
}); |
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
16 changes: 0 additions & 16 deletions
16
blueprints/transform-test/mocha-0.12-files/tests/unit/__path__/__test__.js
This file was deleted.
Oops, something went wrong.
26 changes: 12 additions & 14 deletions
26
blueprints/transform-test/mocha-files/tests/unit/__path__/__test__.js
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,18 +1,16 @@ | ||
import { expect } from 'chai'; | ||
import { describeModule, it } from 'ember-mocha'; | ||
import { describe, it } from 'mocha'; | ||
import { setupTest } from 'ember-mocha'; | ||
|
||
describeModule( | ||
'transform:<%= dasherizedModuleName %>', | ||
'<%= friendlyTestDescription %>', | ||
{ | ||
describe('<%= friendlyTestDescription %>', function() { | ||
setupTest('transform:<%= dasherizedModuleName %>', { | ||
// Specify the other units that are required for this test. | ||
// needs: ['transform:foo'] | ||
}, | ||
function() { | ||
// Replace this with your real tests. | ||
it('exists', function() { | ||
let transform = this.subject(); | ||
expect(transform).to.be.ok; | ||
}); | ||
} | ||
); | ||
}); | ||
|
||
// Replace this with your real tests. | ||
it('exists', function() { | ||
let transform = this.subject(); | ||
expect(transform).to.be.ok; | ||
}); | ||
}); |
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
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