All files / test/dummy/api-responses markdown-content-type.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 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 2031x                                                                                                                                                                                                                                                                                                                                                                                                                    
export const contentType = {
  content_type: {
    created_at: '2019-07-12T17:34:15.060Z',
    updated_at: '2019-07-14T14:18:53.278Z',
    // tslint:disable-next-line: object-literal-sort-keys
    title: 'Sample Three',
    uid: 'sample_three',
    _version: 3,
    inbuilt_class: false,
    schema: [
      {
        display_name: 'Title',
        uid: 'title',
        // tslint:disable-next-line: object-literal-sort-keys
        data_type: 'text',
        mandatory: true,
        unique: true,
        field_metadata: {
          _default: true,
          version: 3,
        },
        non_localizable: false,
        multiple: false,
      },
      {
        display_name: 'URL',
        uid: 'url',
        // tslint:disable-next-line: object-literal-sort-keys
        data_type: 'text',
        mandatory: false,
        field_metadata: {
          _default: true,
          version: 3,
        },
        non_localizable: false,
        multiple: false,
        unique: false,
      },
      {
        data_type: 'file',
        display_name: 'File',
        uid: 'file',
        // tslint:disable-next-line: object-literal-sort-keys
        extensions: [],
        field_metadata: {
          description: '',
          rich_text_type: 'standard',
        },
        reference_to: [],
        non_localizable: false,
        multiple: false,
        mandatory: false,
        unique: false,
      },
      {
        data_type: 'text',
        display_name: 'Rich text editor',
        uid: 'rich_text_editor',
        // tslint:disable-next-line: object-literal-sort-keys
        field_metadata: {
          allow_rich_text: true,
          description: '',
          multiline: false,
          rich_text_type: 'advanced',
          // tslint:disable-next-line: object-literal-sort-keys
          options: [],
          version: 3,
        },
        reference_to: [],
        non_localizable: false,
        multiple: false,
        mandatory: false,
        unique: false,
      },
      {
        data_type: 'group',
        display_name: 'Group',
        field_metadata: {},
        schema: [
          {
            data_type: 'text',
            display_name: 'Rich text editor',
            uid: 'rich_text_editor',
            // tslint:disable-next-line: object-literal-sort-keys
            field_metadata: {
              allow_rich_text: true,
              description: '',
              multiline: false,
              rich_text_type: 'advanced',
              // tslint:disable-next-line: object-literal-sort-keys
              options: [],
              version: 3,
            },
            reference_to: [],
            non_localizable: false,
            multiple: false,
            mandatory: false,
            unique: false,
          },
        ],
        uid: 'group',
        // tslint:disable-next-line: object-literal-sort-keys
        reference_to: [],
        multiple: true,
        non_localizable: false,
        mandatory: false,
        unique: false,
      },
      {
        data_type: 'blocks',
        display_name: 'Modular Blocks',
        // tslint:disable-next-line: object-literal-sort-keys
        blocks: [
          {
            title: 'Block One',
            uid: 'block_one',
            // tslint:disable-next-line: object-literal-sort-keys
            schema: [
              {
                data_type: 'text',
                display_name: 'Markdown',
                uid: 'markdown',
                // tslint:disable-next-line: object-literal-sort-keys
                field_metadata: {
                  description: '',
                  markdown: true,
                  version: 3,
                },
                reference_to: [],
                multiple: true,
                non_localizable: false,
                mandatory: false,
                unique: false,
              },
              {
                data_type: 'text',
                display_name: 'Rich text editor',
                uid: 'rich_text_editor',
                // tslint:disable-next-line: object-literal-sort-keys
                field_metadata: {
                  allow_rich_text: true,
                  description: '',
                  multiline: false,
                  rich_text_type: 'advanced',
                  // tslint:disable-next-line: object-literal-sort-keys
                  options: [],
                  version: 3,
                },
                reference_to: [],
                multiple: true,
                non_localizable: false,
                mandatory: false,
                unique: false,
              },
            ],
          },
        ],
        multiple: true,
        uid: 'modular_blocks',
        field_metadata: {},
        reference_to: [],
        non_localizable: false,
        mandatory: false,
        unique: false,
      },
    ],
    last_activity: {
      environments: [
        {
          uid: 'blt2e69b1b65d17bc6f',
          // tslint:disable-next-line: object-literal-sort-keys
          details: [
            {
              locale: 'en-us',
              time: '2019-07-14T14:19:45.218Z',
            },
          ],
        },
      ],
    },
    maintain_revisions: true,
    description: 'Haz RTE and Assets',
    options: {
      is_page: true,
      singleton: false,
      title: 'title',
      // tslint:disable-next-line: object-literal-sort-keys
      sub_title: [],
      url_pattern: '/:title',
      url_prefix: '/',
    },
    abilities: {
      get_one_object: true,
      // tslint:disable-next-line: object-literal-sort-keys
      get_all_objects: true,
      create_object: true,
      update_object: true,
      delete_object: true,
      delete_all_objects: true,
    },
  },
}