Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inspect magicpen instances as a series of function calls #200

Merged
merged 4 commits into from
Aug 3, 2015

Conversation

papandreou
Copy link
Member

No description provided.

…imply appending its value.

I ran into troubles with testing error messages because the pen instances being tested were appended to the output despite being in a different format.
@papandreou
Copy link
Member Author

This could also be added to magicpen itself as a core style, or maybe be put into a magicpen-magicpen plugin :). Right now it depends on some styles defined by unexpected, though.

@sunesimonsen
Copy link
Member

Funny I had the exact same though, but discarded it because I thought it would be too hard to compare the output. But I guess this is the best we can do and it would definitely be helpful for simple cases.

if (isTopLevel && !pen.isEmpty() && (pen.format === this.format || !pen.format)) {
this.sp().commentBlock(pen);
}
});
};
Copy link
Member

Choose a reason for hiding this comment

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

I would prefer to split this into functions that would handle a line and a function that handle multiple lines. That would remove some of the nesting.

@sunesimonsen
Copy link
Member

It is actually pretty helpful with the actual output on right side.

@papandreou
Copy link
Member Author

Tried splitting it up.

@sunesimonsen
Copy link
Member

Thanks that is a bit more clean :-)

sunesimonsen added a commit that referenced this pull request Aug 3, 2015
Inspect magicpen instances as a series of function calls
@sunesimonsen sunesimonsen merged commit 676b48e into master Aug 3, 2015
@papandreou papandreou deleted the feature/inspectMagicPen branch August 17, 2015 21:35
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.

2 participants