Skip to content

Latest commit

 

History

History
195 lines (160 loc) · 2.62 KB

test.js.md

File metadata and controls

195 lines (160 loc) · 2.62 KB

Snapshot report for test.js

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

Generated by AVA.

Base.reset() clears cache

Snapshot 1

[
  <style
    dangerouslySetInnerHTML={
      {
        __html: '.x0{color:magenta;}',
      }
    }
  />,
  <div
    className="x0"
  />,
]

Snapshot 2

[
  <style
    dangerouslySetInnerHTML={
      {
        __html: '.x0{color:magenta;}',
      }
    }
  />,
  <div
    className="x0"
  />,
]

Extends Axs components

Snapshot 1

[
  <style
    dangerouslySetInnerHTML={
      {
        __html: '.x1{color:tomato;font-size:32px;}',
      }
    }
  />,
  <div
    className="x1"
  />,
]

Skips update when css is the same

Snapshot 1

[
  <style
    dangerouslySetInnerHTML={
      {
        __html: '.x0{color:tomato;}',
      }
    }
  />,
  <div
    className="x0"
  />,
]

Snapshot 2

[
  <style
    dangerouslySetInnerHTML={
      {
        __html: '.x0{color:tomato;}',
      }
    }
  />,
  <div
    className="x0"
  />,
]

Style renders

Snapshot 1

<style
  dangerouslySetInnerHTML={
    {
      __html: '.tomato{color:tomato;}',
    }
  }
/>

Updates styles on css change

Snapshot 1

[
  <style
    dangerouslySetInnerHTML={
      {
        __html: '.x0{color:tomato;}',
      }
    }
  />,
  <div
    className="x0"
  />,
]

Snapshot 2

[
  <style
    dangerouslySetInnerHTML={
      {
        __html: '.x1{color:green;}',
      }
    }
  />,
  <div
    className="x1"
  />,
]

caches results

Snapshot 1

[
  <style
    dangerouslySetInnerHTML={
      {
        __html: '.x0{color:magenta;}',
      }
    }
  />,
  <div
    className="x0"
  />,
  <div
    className="x0"
  />,
]

renders

Snapshot 1

[
  '',
  <div
    className="x0"
  />,
]

renders with css prop

Snapshot 1

[
  <style
    dangerouslySetInnerHTML={
      {
        __html: '.x0{color:tomato;}',
      }
    }
  />,
  <div
    className="x0"
  />,
]

renders with decorated HTML element key

Snapshot 1

[
  <style
    dangerouslySetInnerHTML={
      {
        __html: '.x0{color:tomato;}',
      }
    }
  />,
  <h2
    className="x0"
  />,
]