How to use the @remirror/core-helpers.pick function in @remirror/core-helpers

To help you get started, we’ve selected a few @remirror/core-helpers 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__ / prosemirror-utils.spec.ts View on Github external
test('schemaToJSON', () => {
  const testSchema = new Schema({
    nodes: pick(nodes, ['doc', 'paragraph', 'text']),
    marks: pick(marks, ['em', 'strong']),
  });

  expect(schemaToJSON(testSchema)).toMatchSnapshot();
});
github ifiokjr / remirror / @remirror / ui / src / __tests__ / ui-hsl.spec.ts View on Github external
test('#clone', () => {
    const cloned = hsl.clone();
    expect(cloned).not.toBe(hsl);
    expect(pick(hsl, ['h', 's', 'l', 'a'])).toEqual(pick(cloned, ['h', 's', 'l', 'a']));
  });
github ifiokjr / remirror / @remirror / core-utils / src / __tests__ / prosemirror-utils.spec.ts View on Github external
test('schemaToJSON', () => {
  const testSchema = new Schema({
    nodes: pick(nodes, ['doc', 'paragraph', 'text']),
    marks: pick(marks, ['em', 'strong']),
  });

  expect(schemaToJSON(testSchema)).toMatchSnapshot();
});
github ifiokjr / remirror / @remirror / ui-text / src / ui-text.tsx View on Github external
const pickTextProps = (props: GProps) => pick(props, keys as any);
const omitTextProps = (props: GProps) => omit(props, keys as any);
github ifiokjr / remirror / packages / jest-prosemirror / src / jest-prosemirror-editor.ts View on Github external
callback: (fn: (content: ReturnValueCallbackParams) => void) => {
        fn({ ...pick(returnValue, ['start', 'end', 'state', 'view', 'schema', 'selection', 'doc']), debug });
        return createReturnValue();
      },