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

Add failing tests for custom delete component #802

Closed
wants to merge 1 commit into from

Conversation

markmichon
Copy link

Included are failing tests for #801

@vercel
Copy link

vercel bot commented Oct 5, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://mdx-git-fork-markmichon-delete-tests.mdx.now.sh

@vercel vercel bot temporarily deployed to staging October 5, 2019 13:40 Inactive
@@ -16,7 +16,9 @@ const IMPORT_FIXTURE = fs.readFileSync(
const components = {
h1: ({children}) =>
React.createElement('h1', {style: {color: 'tomato'}}, children),
Button: () => React.createElement('button', {}, 'Hello, button!')
Button: () => React.createElement('button', {}, 'Hello, button!'),
delete: ({children}) =>
Copy link
Contributor

Choose a reason for hiding this comment

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

'del: ({children}) =>' to make this test work.

it('Should render delete as del', () => {
const result = renderToString(
<MDXProvider components={{delete: CustomDelete}}>
<Fixture />
Copy link
Contributor

Choose a reason for hiding this comment

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

This test fails because the Fixture does not contain a tag.

@johno
Copy link
Member

johno commented Feb 20, 2020

Thanks for opening up this PR! I'm going to go ahead and close this since there's now a test that verifies the proper behavior

@johno johno closed this Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants