|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
-
- exports[`<Button /> adds class "button-secondary" if props.secondary given 1`] = `
- <button
- className="button button-secondary"
- onClick={[Function]}
- style={
- Object {
- "height": "36px",
- "lineHeight": "36px",
- "padding": "0 16px",
- }
- }
- />
- `;
-
- exports[`<Button /> renders a button element 1`] = `
- <button
- className="button"
- onClick={[Function]}
- style={
- Object {
- "height": "36px",
- "lineHeight": "36px",
- "padding": "0 16px",
- }
- }
- />
- `;
-
- exports[`<Button /> renders a disabled attribute if props.disabled given 1`] = `
- <button
- className="button"
- disabled={true}
- onClick={[Function]}
- style={
- Object {
- "height": "36px",
- "lineHeight": "36px",
- "padding": "0 16px",
- }
- }
- />
- `;
-
- exports[`<Button /> renders class="button--block" if props.block given 1`] = `
- <button
- className="button button--block"
- onClick={[Function]}
- style={
- Object {
- "height": "36px",
- "lineHeight": "36px",
- "padding": "0 16px",
- }
- }
- />
- `;
-
- exports[`<Button /> renders the children 1`] = `
- <button
- className="button"
- onClick={[Function]}
- style={
- Object {
- "height": "36px",
- "lineHeight": "36px",
- "padding": "0 16px",
- }
- }
- >
- <p>
- children
- </p>
- </button>
- `;
-
- exports[`<Button /> renders the given text 1`] = `
- <button
- className="button"
- onClick={[Function]}
- style={
- Object {
- "height": "36px",
- "lineHeight": "36px",
- "padding": "0 16px",
- }
- }
- >
- foo
- </button>
- `;
-
- exports[`<Button /> renders the props.text instead of children 1`] = `
- <button
- className="button"
- onClick={[Function]}
- style={
- Object {
- "height": "36px",
- "lineHeight": "36px",
- "padding": "0 16px",
- }
- }
- >
- foo
- </button>
- `;
|