diff --git a/packages/vital-examples/src/intro/section-example/components/Section/__tests__/Section.test.tsx b/packages/vital-examples/src/intro/section-example/components/Section/__tests__/Section.test.tsx new file mode 100644 index 0000000000..5ea3b12eac --- /dev/null +++ b/packages/vital-examples/src/intro/section-example/components/Section/__tests__/Section.test.tsx @@ -0,0 +1,15 @@ +/* eslint-disable jest/valid-describe */ +import React from 'react'; +import { testTokens } from '@bodiless/vital-elements'; +import { SectionClean } from '@bodiless/vital-section'; +import { exampleSection } from '..'; + +jest.mock('slate', () => ({ + Editor: () => (
Heal the world!
), + Raw: { + deserialize: jest.fn(), + serialize: jest.fn() + } +})); + +describe('Dialog Tokens', testTokens(SectionClean, exampleSection));