Skip to content
This repository was archived by the owner on Aug 5, 2019. It is now read-only.

Commit 8c7502d

Browse files
authored
Change prop from className to class (#5)
1 parent 0c9974e commit 8c7502d

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/__tests__/components/Image-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('Image', () => {
1717
layout: 'responsive',
1818
width: '100',
1919
height: '100',
20-
className: 'such-a-class'
20+
class: 'such-a-class'
2121
}
2222
const image = renderComponent(<Image {...props} />)
2323
expect(image.toJSON().props).toMatchObject(props)
@@ -31,7 +31,7 @@ describe('Image', () => {
3131
layout: 'responsive',
3232
width: '100',
3333
height: '100',
34-
className: 'such-a-class'
34+
class: 'such-a-class'
3535
}
3636
const invalidProps = {
3737
randomStuff: 'aiosdo',

src/__tests__/components/__snapshots__/Carousel-test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Array [
1313
exports[`Carousel matches the snapshot 1`] = `
1414
<amp-carousel
1515
autoplay={null}
16-
className={undefined}
16+
class={undefined}
1717
delay={null}
1818
fallback={undefined}
1919
height="250"

src/__tests__/components/__snapshots__/Image-test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`[object Object] 1`] = `"<amp-img layout=\\"responsive\\" width=\\"100\\" height=\\"100\\" className=\\"such-a-class\\" src=\\"https://placekitten.com/200/300\\" srcset=\\"/img/amp.jpg 1080w, /img/amp-900.jpg 900w\\" alt=\\"just an alt\\"></amp-img>"`;
3+
exports[`[object Object] 1`] = `"<amp-img layout=\\"responsive\\" width=\\"100\\" height=\\"100\\" class=\\"such-a-class\\" src=\\"https://placekitten.com/200/300\\" srcset=\\"/img/amp.jpg 1080w, /img/amp-900.jpg 900w\\" alt=\\"just an alt\\"></amp-img>"`;
44
55
exports[`Image matches the snapshot 1`] = `
66
<amp-img
77
alt=""
8-
className={undefined}
8+
class={undefined}
99
fallback={undefined}
1010
height={undefined}
1111
heights={undefined}

src/__tests__/components/__snapshots__/Sidebar-test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Array [
1212

1313
exports[`Sidebar matches the snapshot 1`] = `
1414
<amp-sidebar
15-
className={undefined}
15+
class={undefined}
1616
fallback={undefined}
1717
height={undefined}
1818
heights={undefined}

src/components/commonPropTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const commonPropTypes = {
1818
width: string,
1919
height: string,
2020
fallback: object,
21-
className: string
21+
class: string
2222
}
2323

2424
export default commonPropTypes

0 commit comments

Comments
 (0)