Skip to content

Commit

Permalink
Made tests pass and corrected behaviour for actions and init in projects
Browse files Browse the repository at this point in the history
  • Loading branch information
dlmr committed Sep 22, 2016
1 parent 7524be2 commit 10a9e71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/context/initContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,19 @@ export default function initContext({
handleResult({
actions: projectSpecific.actions,
config: omit(projectConfig, ['project']),
}, projectConfig.init({ verbose, directory, context })),
}, projectSpecific.init({ context })),
{ context },
false,
true,
false
);
).context;
} else {
context.config = merge(
context.config,
omit(projectConfig, ['project'])
);

if (projectConfig.actions) {
if (projectSpecific.actions) {
// We allow both a function directly or an array of actions
const projectActions = isFunction(projectSpecific.actions) ?
[projectSpecific.actions] :
Expand Down

0 comments on commit 10a9e71

Please sign in to comment.