-
-
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.
Merge pull request #17205 from simonihmig/inst-init-blueprint
Refactor instance-initializer blueprint tests to use fixtures
- Loading branch information
Showing
4 changed files
with
59 additions
and
104 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,11 +20,17 @@ describe('Blueprint: instance-initializer-test', function() { | |
return emberNew(); | ||
}); | ||
|
||
it('instance-initializer-test foo', function() { | ||
return emberGenerateDestroy(['instance-initializer-test', 'foo'], _file => { | ||
expect(_file('tests/unit/instance-initializers/foo-test.js')).to.equal( | ||
fixture('instance-initializer-test/default.js') | ||
); | ||
describe('with [email protected]', function() { | ||
beforeEach(function() { | ||
generateFakePackageManifest('ember-cli-qunit', '4.1.0'); | ||
}); | ||
|
||
it('instance-initializer-test foo', function() { | ||
return emberGenerateDestroy(['instance-initializer-test', 'foo'], _file => { | ||
expect(_file('tests/unit/instance-initializers/foo-test.js')).to.equal( | ||
fixture('instance-initializer-test/default.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
7 changes: 7 additions & 0 deletions
7
node-tests/fixtures/instance-initializer/instance-initializer-nested.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,7 @@ | ||
export function initialize(/* appInstance */) { | ||
// appInstance.inject('route', 'foo', 'service:foo'); | ||
} | ||
|
||
export default { | ||
initialize | ||
}; |
7 changes: 7 additions & 0 deletions
7
node-tests/fixtures/instance-initializer/instance-initializer.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,7 @@ | ||
export function initialize(/* appInstance */) { | ||
// appInstance.inject('route', 'foo', 'service:foo'); | ||
} | ||
|
||
export default { | ||
initialize | ||
}; |