Skip to content

Conversation

@tchandler
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Jul 25, 2018

Coverage Status

Coverage remained the same at 95.326% when pulling 4de1bc6 on tchandler:fix-meta-update into 9c87c5d on hemerajs:master.

})
})

it('Should be able to update metadata', function(done) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you name it like "Should set metadata context correctly when child call use the same property"


// set metadata by passed pattern or current message context
context.meta$ = Object.assign(pattern.meta$ || {}, context.meta$)
Object.assign(context.meta$, pattern.meta$ || {})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Object.assign(context.meta$, pattern.meta$) is fine

@StarpTech StarpTech merged commit 45f8524 into hemerajs:master Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants