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

Improve Media Card block stability through transforms testing #1218

Merged
merged 1 commit into from
Jan 9, 2020

Conversation

AnthonyLedesma
Copy link
Member

New Transforms tests for Media Card block.

Test changes using

npx jest --config .dev/tests/jest/jest.config.js ./src/blocks/media-card/test/transforms.spec.js
 PASS  src/blocks/media-card/test/transforms.spec.js
  coblocks/media-card transforms
     should transform from core/image block (2ms)
     should transform from core/video block (1ms)
     should transform from core/media-text block (1ms)
     should transform to core/image block
     should transform to core/video block (1ms)
     should transform to core/media-text block (2ms)
     should transform when :card prefix is seen

Test Suites: 1 passed, 1 total
Tests:       7 passed, 7 total
Snapshots:   0 total
Time:        2.966s, estimated 3s

@richtabor richtabor merged commit 2afcb5c into master Jan 9, 2020
@richtabor richtabor deleted the media-card-block-transform-tests branch January 9, 2020 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Enhancement Something new that adds functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants