-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #5418 - kamalaknn:absolute-imports, r=rwjblue
[ENHANCEMENT] Use absolute imports in tests Continuation of #5203
- Loading branch information
Showing
11 changed files
with
24 additions
and
25 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
blueprints/helper-test/files/tests/unit/helpers/__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
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,14 +1,14 @@ | ||
/*jshint node:true*/ | ||
|
||
var getDependencyDepth = require('ember-cli-get-dependency-depth'); | ||
var testInfo = require('ember-cli-test-info'); | ||
var stringUtils = require('ember-cli-string-utils'); | ||
|
||
module.exports = { | ||
description: 'Generates a helper unit test.', | ||
locals: function(options) { | ||
return { | ||
friendlyTestName: testInfo.name(options.entity.name, "Unit", "Helper"), | ||
dependencyDepth: getDependencyDepth(options.entity.name) | ||
dasherizedModulePrefix: stringUtils.dasherize(options.project.config().modulePrefix) | ||
}; | ||
} | ||
}; |
2 changes: 1 addition & 1 deletion
2
blueprints/initializer-test/files/tests/unit/initializers/__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
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,14 +1,14 @@ | ||
/*jshint node:true*/ | ||
|
||
var getDependencyDepth = require('ember-cli-get-dependency-depth'); | ||
var testInfo = require('ember-cli-test-info'); | ||
var stringUtils = require('ember-cli-string-utils'); | ||
|
||
module.exports = { | ||
description: 'Generates an initializer unit test.', | ||
locals: function(options) { | ||
return { | ||
friendlyTestName: testInfo.name(options.entity.name, "Unit", "Initializer"), | ||
dependencyDepth: getDependencyDepth(options.entity.name) | ||
dasherizedModulePrefix: stringUtils.dasherize(options.project.config().modulePrefix) | ||
}; | ||
} | ||
}; |
2 changes: 1 addition & 1 deletion
2
blueprints/instance-initializer-test/files/tests/unit/instance-initializers/__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
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,14 +1,14 @@ | ||
/*jshint node:true*/ | ||
|
||
var getDependencyDepth = require('../../lib/utilities/get-dependency-depth'); | ||
var testInfo = require('ember-cli-test-info'); | ||
var stringUtils = require('ember-cli-string-utils'); | ||
|
||
module.exports = { | ||
description: 'Generates an instance initializer unit test.', | ||
locals: function(options) { | ||
return { | ||
friendlyTestName: testInfo.name(options.entity.name, "Unit", "Instance Initializer"), | ||
dependencyDepth: getDependencyDepth(options) | ||
dasherizedModulePrefix: stringUtils.dasherize(options.project.config().modulePrefix) | ||
}; | ||
} | ||
}; |
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