Skip to content

Latest commit

 

History

History
276 lines (202 loc) · 3.73 KB

format.js.md

File metadata and controls

276 lines (202 loc) · 3.73 KB

Snapshot report for test/format.js

The actual snapshot is saved in format.js.snap.

Generated by AVA.

formats array values in object properties

Snapshot 1

`<Foo␊
  object={␊
    {␊
      baz: [␊
        'thud',␊
      ],␊
    }␊
  }␊
/>`

formats array values in object properties in children

Snapshot 1

`<Foo>␊
  <Bar␊
    key="bar"␊
    object={␊
      {␊
        baz: [␊
          'thud',␊
        ],␊
      }␊
    }␊
  />␊
</Foo>`

formats fragments

Snapshot 1

`<React.Fragment>␊
  <HelloMessage⍟␊
    name="John"␊
  />␊
</React.Fragment>`

formats illegal spaces in property names

Snapshot 1

`<Foo␊
  "foo bar"="baz"␊
/>`

formats max depth

Snapshot 1

`<div>␊
  <div>␊
    <div>…</div>␊
    <div…>…</div>␊
    <br… />␊
    <br />␊
  </div>␊
</div>`

formats memoized elements

Snapshot 1

`<HelloMessage⍝␊
  name="John"␊
/>`

formats multiline string properties

Snapshot 1

`<Foo␊
  multiline={␊
    `foo␊␊
    bar`␊
  }␊
/>`

formats object properties

Snapshot 1

`<Foo␊
  object={␊
    {␊
      baz: 'thud',␊
    }␊
  }␊
/>`

formats opaque children

Snapshot 1

`<div>␊
  {true}␊
  {-0}␊
  {Function {}}␊
  {␊
    Set {␊
      'foo',␊
    }␊
  }␊
</div>`

formats properties and children

Snapshot 1

`<Foo␊
  foo="bar"␊
>␊
  baz␊
</Foo>`

formats react elements

Snapshot 1

`<HelloMessage⍟␊
  name="John"␊
/>`

formats rendered array values in object properties

Snapshot 1

`<Foo␊
  object={␊
    {␊
      baz: [␊
        'thud',␊
      ],␊
    }␊
  }␊
/>`

formats rendered array values in object properties in children

Snapshot 1

`<Foo>␊
  <Bar␊
    object={␊
      {␊
        baz: [␊
          'thud',␊
        ],␊
      }␊
    }␊
  />␊
</Foo>`

formats rendered fragments

Snapshot 1

`<div>␊
  Hello ␊
  <mark>␊
    John␊
  </mark>␊
</div>`

formats rendered illegal spaces in property names

Snapshot 1

`<Foo␊
  "foo bar"="baz"␊
/>`

formats rendered max depth

Snapshot 1

`<div>␊
  <div>␊
    <div>…</div>␊
    <div…>…</div>␊
    <br… />␊
    <br />␊
  </div>␊
</div>`

formats rendered memoized elements

Snapshot 1

`<div>␊
  Hello ␊
  <mark>␊
    John␊
  </mark>␊
</div>`

formats rendered multiline string properties

Snapshot 1

`<Foo␊
  multiline={␊
    `foo␊␊
    bar`␊
  }␊
/>`

formats rendered object properties

Snapshot 1

`<Foo␊
  object={␊
    {␊
      baz: 'thud',␊
    }␊
  }␊
/>`

formats rendered properties and children

Snapshot 1

`<Foo␊
  foo="bar"␊
>␊
  baz␊
</Foo>`

formats rendered react elements

Snapshot 1

`<div>␊
  Hello ␊
  <mark>␊
    John␊
  </mark>␊
</div>`

formats rendered string and number children

Snapshot 1

`<div>␊
  foo␊
  bar␊
  42␊
</div>`

formats single line attribute values

Snapshot 1

`<Foo␊
  bool={true}␊
/>`

formats string and number children

Snapshot 1

`<div>␊
  foo␊
  bar␊
  {42}␊
</div>`