all repos — homestead @ 2017

My future indieweb platform

test/snapshots/app.test.js.md (view raw)

Snapshot report for test/app.test.js

The actual snapshot is saved in app.test.js.snap.

Generated by AVA.

homepage

should contain relevant microformats data

{
  items: [
    {
      properties: {
        name: [
          'John Doe',
        ],
        note: [
          'Nobody in particular',
        ],
        photo: [
          '/static/johndoe.jpg',
        ],
        url: [
          '/',
        ],
      },
      type: [
        'h-card',
      ],
    },
    {
      children: [
        {
          properties: {
            name: [
              'This is a test',
            ],
            published: [
              '2017-01-01T00:00:00.000Z',
            ],
            url: [
              '/post/testfile',
            ],
          },
          type: [
            'h-entry',
          ],
          value: 'This is a test Sunday, January 1, 2017',
        },
      ],
      properties: {
        name: [
          'John Doe',
        ],
      },
      type: [
        'h-feed',
      ],
    },
  ],
  'rel-urls': {
    '/css/code.css': {
      rels: [
        'stylesheet',
      ],
    },
    'https://twitter.com/johndoe': {
      rels: [
        'me',
      ],
      text: 'Twitter',
    },
    'mailto:johndoe@johndoe.org': {
      rels: [
        'me',
      ],
      text: 'johndoe@johndoe.org',
    },
  },
  rels: {
    me: [
      'mailto:johndoe@johndoe.org',
      'https://twitter.com/johndoe',
    ],
    stylesheet: [
      '/css/code.css',
    ],
  },
}

post

should contain relevant microformats data

{
  items: [
    {
      properties: {
        name: [
          'John Doe',
        ],
        note: [
          'Nobody in particular',
        ],
        photo: [
          '/static/johndoe.jpg',
        ],
        url: [
          '/',
        ],
      },
      type: [
        'h-card',
      ],
    },
    {
      properties: {
        content: [
          {
            html: '<p>Ut enim blandit volutpat maecenas? Volutpat blandit aliquam etiam erat velit, scelerisque in dictum non, consectetur a erat nam at lectus urna duis convallis convallis tellus, id interdum velit laoreet!</p> <pre><code class="language-sh"> <span class="hljs-meta">#!/usr/bin/env zsh </span> <span class="hljs-built_in">echo</span> this is some shell code <span class="hljs-keyword">if</span> [[ -n <span class="hljs-variable">$test</span> ]] <span class="hljs-keyword">then</span> <span class="hljs-built_in">echo</span> <span class="hljs-built_in">test</span> passed <span class="hljs-keyword">fi</span> </code></pre>',
            value: 'Ut enim blandit volutpat maecenas? Volutpat blandit aliquam etiam erat velit, scelerisque in dictum non, consectetur a erat nam at lectus urna duis convallis convallis tellus, id interdum velit laoreet! #!/usr/bin/env zsh echo this is some shell code if [[ -n $test ]] then echo test passed fi',
          },
        ],
        name: [
          'This is a test',
        ],
        published: [
          '2017-01-01T00:00:00.000Z',
        ],
      },
      type: [
        'h-entry',
      ],
    },
  ],
  'rel-urls': {
    '/css/code.css': {
      rels: [
        'stylesheet',
      ],
    },
    'https://twitter.com/johndoe': {
      rels: [
        'me',
      ],
      text: 'Twitter',
    },
    'mailto:johndoe@johndoe.org': {
      rels: [
        'me',
      ],
      text: 'johndoe@johndoe.org',
    },
  },
  rels: {
    me: [
      'mailto:johndoe@johndoe.org',
      'https://twitter.com/johndoe',
    ],
    stylesheet: [
      '/css/code.css',
    ],
  },
}

posts

should contain relevant microformats data

{
  items: [
    {
      properties: {
        name: [
          'John Doe',
        ],
        note: [
          'Nobody in particular',
        ],
        photo: [
          '/static/johndoe.jpg',
        ],
        url: [
          '/',
        ],
      },
      type: [
        'h-card',
      ],
    },
    {
      children: [
        {
          properties: {
            name: [
              'This is a test',
            ],
            published: [
              '2017-01-01T00:00:00.000Z',
            ],
            url: [
              '/post/testfile',
            ],
          },
          type: [
            'h-entry',
          ],
          value: 'This is a test Sunday, January 1, 2017',
        },
      ],
      properties: {
        name: [
          'Posts · John Doe',
        ],
      },
      type: [
        'h-feed',
      ],
    },
  ],
  'rel-urls': {
    '/css/code.css': {
      rels: [
        'stylesheet',
      ],
    },
    'https://twitter.com/johndoe': {
      rels: [
        'me',
      ],
      text: 'Twitter',
    },
    'mailto:johndoe@johndoe.org': {
      rels: [
        'me',
      ],
      text: 'johndoe@johndoe.org',
    },
  },
  rels: {
    me: [
      'mailto:johndoe@johndoe.org',
      'https://twitter.com/johndoe',
    ],
    stylesheet: [
      '/css/code.css',
    ],
  },
}

tags

should contain relevant microformats data

{
  items: [
    {
      properties: {
        name: [
          'John Doe',
        ],
        note: [
          'Nobody in particular',
        ],
        photo: [
          '/static/johndoe.jpg',
        ],
        url: [
          '/',
        ],
      },
      type: [
        'h-card',
      ],
    },
    {
      children: [
        {
          properties: {
            name: [
              'This is a test',
            ],
            published: [
              '2017-01-01T00:00:00.000Z',
            ],
            url: [
              '/post/testfile',
            ],
          },
          type: [
            'h-entry',
          ],
          value: 'This is a test Sunday, January 1, 2017',
        },
      ],
      properties: {
        name: [
          'A · John Doe',
        ],
      },
      type: [
        'h-feed',
      ],
    },
  ],
  'rel-urls': {
    '/css/code.css': {
      rels: [
        'stylesheet',
      ],
    },
    'https://twitter.com/johndoe': {
      rels: [
        'me',
      ],
      text: 'Twitter',
    },
    'mailto:johndoe@johndoe.org': {
      rels: [
        'me',
      ],
      text: 'johndoe@johndoe.org',
    },
  },
  rels: {
    me: [
      'mailto:johndoe@johndoe.org',
      'https://twitter.com/johndoe',
    ],
    stylesheet: [
      '/css/code.css',
    ],
  },

tag

should contain relevant microformats data

{
  items: [
    {
      properties: {
        name: [
          'John Doe',
        ],
        note: [
          'Nobody in particular',
        ],
        photo: [
          '/static/johndoe.jpg',
        ],
        url: [
          '/',
        ],
      },
      type: [
        'h-card',
      ],
    },
    {
      children: [
        {
          properties: {
            name: [
              'This is a test',
            ],
            published: [
              '2017-01-01T00:00:00.000Z',
            ],
            url: [
              '/post/testfile',
            ],
          },
          type: [
            'h-entry',
          ],
          value: 'This is a test Sunday, January 1, 2017',
        },
      ],
      properties: {
        name: [
          'A · John Doe',
        ],
      },
      type: [
        'h-feed',
      ],
    },
  ],
  'rel-urls': {
    '/css/code.css': {
      rels: [
        'stylesheet',
      ],
    },
    'https://twitter.com/johndoe': {
      rels: [
        'me',
      ],
      text: 'Twitter',
    },
    'mailto:johndoe@johndoe.org': {
      rels: [
        'me',
      ],
      text: 'johndoe@johndoe.org',
    },
  },
  rels: {
    me: [
      'mailto:johndoe@johndoe.org',
      'https://twitter.com/johndoe',
    ],
    stylesheet: [
      '/css/code.css',
    ],
  },
}