All files / json-crdt-extensions/quill-delta/__tests__/traces annotate-annotations.ts

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21    1x                                    
import type {QuillTrace} from '../../types';
 
export const annotateAnnotationsQuillTrace: QuillTrace = {
  contents: {
    ops: [
      {insert: 'A', attributes: {bold: true}},
      {insert: 'ABB', attributes: {bold: true, underline: true}},
      {
        insert: 'C',
        attributes: {italic: true, bold: true, underline: true},
      },
      {insert: 'C', attributes: {italic: true}},
    ],
  },
  transactions: [
    [{insert: 'AABBCC'}],
    [{retain: 2, attributes: {bold: true}}, {retain: 2}, {retain: 2, attributes: {italic: true}}],
    [{retain: 1}, {retain: 4, attributes: {bold: true, underline: true}}],
  ],
};