How to use the jest-prosemirror.strong function in jest-prosemirror

To help you get started, we’ve selected a few jest-prosemirror examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ifiokjr / remirror / @remirror / core-utils / src / __tests__ / command-utils.spec.ts View on Github external
it('removes the contained mark', () => {
    const from = doc(p(strong('bold')));
    const to = doc(p('bold'));
    expect(removeMark({ type })).toTransformNode({ from, to });
  });
github ifiokjr / remirror / @remirror / core-utils / src / __tests__ / command-utils.spec.ts View on Github external
it('removes mark when `expand` is `true`', () => {
    const from = doc(p(strong('bold')));
    const to = doc(p('bold'));
    expect(removeMark({ type, expand: true })).toTransformNode({ from, to });
  });
github ifiokjr / remirror / @remirror / core-utils / src / __tests__ / command-utils.spec.ts View on Github external
test('updateMark', () => {
  const from = doc(p('Make bold'));
  const to = doc(p('Make ', strong('bold')));
  expect(updateMark({ type: schema.marks.strong })).toTransformNode({ from, to });
});
github ifiokjr / remirror / @remirror / core-utils / src / __tests__ / prosemirror-rules.spec.ts View on Github external
      .callback(content => expect(content.doc).toEqualProsemirrorNode(doc(p(strong('Hello')))));
  });
github ifiokjr / remirror / @remirror / core-utils / src / __tests__ / prosemirror-rules.spec.ts View on Github external
.callback(content => {
        expect(content.doc).toEqualProsemirrorNode(
          doc(
            p('Some ', strong('@test'), ' ', strong('@content')),
            p('should ', strong('@be'), ' amazing'),
            p(''),
          ),
        );
      });
  });
github ifiokjr / remirror / @remirror / core-utils / src / __tests__ / prosemirror-rules.spec.ts View on Github external
.callback(content => {
        expect(content.doc).toEqualProsemirrorNode(
          doc(
            p('Some ', strong('@test'), ' ', strong('@content')),
            p('should ', strong('@be'), ' amazing'),
            p(''),
          ),
        );
      });
  });