rofrischmann/fela

View on GitHub
packages/fela-plugin-embedded/src/__tests__/__snapshots__/embedded-test.js.snap

Summary

Maintainability
Test Coverage
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Embedded plugin should render base64 fonts 1`] = `"@font-face{font-weight:500;src:url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAHwwABMAAAAA4I) format('woff');font-family:\"foo\"}.a{font-family:\"foo\"}"`;

exports[`Embedded plugin should render font string fallbacks 1`] = `"@font-face{font-weight:400;src:url('arial-regular.svg') format('svg'),url('arial-regular.ttf') format('truetype');font-family:\"Arial\"}.a{color:red}.b{font-family:\"Arial\",sans-serif}"`;

exports[`Embedded plugin should render inline fonts with same fontFamily 1`] = `"@font-face{font-weight:400;src:url('arial-regular.svg') format('svg'),url('arial-regular.ttf') format('truetype');font-family:\"Arial\"}@font-face{font-weight:700;src:url('arial-bold.svg') format('svg'),url('arial-bold.ttf') format('truetype');font-family:\"Arial\"}.a{color:red}.b{font-family:\"Arial\"}"`;

exports[`Embedded plugin should render inline keyframes & fonts 1`] = `"@font-face{font-weight:500;src:url('foo.svg') format('svg'),url('bar.ttf') format('truetype');font-family:\"Arial\"}@-webkit-keyframes k1{0%{color:red}100%{color:blue}}@-moz-keyframes k1{0%{color:red}100%{color:blue}}@keyframes k1{0%{color:red}100%{color:blue}}.a{color:red}.b{animation-name:k1}.c{font-family:\"Arial\"}"`;

exports[`Embedded plugin should render inline multiple keyframes & fonts 1`] = `"@font-face{font-weight:500;src:url('foo.svg') format('svg'),url('bar.ttf') format('truetype');font-family:\"Arial\"}@font-face{font-weight:400;src:url('baz.svg') format('svg'),url('asd.ttf') format('truetype');font-family:\"Lato Light\"}@-webkit-keyframes k1{0%{color:red}100%{color:blue}}@-moz-keyframes k1{0%{color:red}100%{color:blue}}@keyframes k1{0%{color:red}100%{color:blue}}@-webkit-keyframes k2{0%{background-color:red}100%{background-color:blue}}@-moz-keyframes k2{0%{background-color:red}100%{background-color:blue}}@keyframes k2{0%{background-color:red}100%{background-color:blue}}.a{color:red}.b{animation-name:k1,k2}.c{font-family:\"Arial\",\"Lato Light\"}"`;

exports[`Embedded plugin should render nested inline keyframes & fonts 1`] = `"@font-face{font-weight:500;src:url('foo.svg') format('svg'),url('bar.ttf') format('truetype');font-family:\"Arial\"}@-webkit-keyframes k1{0%{color:red}100%{color:blue}}@-moz-keyframes k1{0%{color:red}100%{color:blue}}@keyframes k1{0%{color:red}100%{color:blue}}.a{color:red}.b:hover{animation-name:k1}.c:hover{font-family:\"Arial\"}"`;