File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed
Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ async function getBaseConfig(options) {
3232 if ( fs . existsSync ( configPath ) ) {
3333 let configData = await require ( configPath ) ;
3434
35- data = typeof configData === 'function' ? await configData ( options . project ) : configData ;
35+ data = typeof configData === 'function' ? await configData ( ) : configData ;
3636 } else {
3737 debug ( 'Config file does not exist %s' , configPath ) ;
3838 }
Original file line number Diff line number Diff line change @@ -108,18 +108,6 @@ describe('utils/config', () => {
108108 } ) ;
109109 } ) ;
110110
111- it ( 'config file exporting a function is passed the project' , ( ) => {
112- generateConfigFile (
113- 'module.exports = function(project) { return { scenarios: [ { foo: project.blah }] } };' ,
114- ) ;
115-
116- project . blah = 'passed-in' ;
117- return getConfig ( { project } ) . then ( ( config ) => {
118- expect ( config . scenarios ) . to . have . lengthOf ( 1 ) ;
119- expect ( config . scenarios [ 0 ] . foo ) . to . equal ( 'passed-in' ) ;
120- } ) ;
121- } ) ;
122-
123111 it ( 'throws error if project.root/config/ember-try.js is not present and no versionCompatibility' , ( ) => {
124112 return getConfig ( { project } ) . catch ( ( error ) => {
125113 expect ( error ) . to . match (
You can’t perform that action at this time.
0 commit comments