-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blueprints/mixin-test: Added RFC-232 variant
- Loading branch information
1 parent
e1dc61f
commit cd86443
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
blueprints/mixin-test/qunit-rfc-232-files/tests/unit/mixins/__name__-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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import EmberObject from '@ember/object'; | ||
import <%= classifiedModuleName %>Mixin from '<%= projectName %>/mixins/<%= dasherizedModuleName %>'; | ||
import { module, test } from 'qunit'; | ||
import { setupTest } from 'ember-qunit'; | ||
|
||
module('<%= friendlyTestName %>', function(hooks) { | ||
setupTest(hooks); | ||
|
||
// Replace this with your real tests. | ||
test('it works', function (assert) { | ||
let <%= classifiedModuleName %>Object = EmberObject.extend(<%= classifiedModuleName %>Mixin); | ||
let subject = <%= classifiedModuleName %>Object.create(); | ||
assert.ok(subject); | ||
}); | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import EmberObject from '@ember/object'; | ||
import FooMixin from 'my-app/mixins/foo'; | ||
import { module, test } from 'qunit'; | ||
import { setupTest } from 'ember-qunit'; | ||
|
||
module('Unit | Mixin | foo', function(hooks) { | ||
setupTest(hooks); | ||
|
||
// Replace this with your real tests. | ||
test('it works', function (assert) { | ||
let FooObject = EmberObject.extend(FooMixin); | ||
let subject = FooObject.create(); | ||
assert.ok(subject); | ||
}); | ||
}); |