Skip to content

Commit a05d74f

Browse files
committed
Fix import in testcase
1 parent d96bdd4 commit a05d74f

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/__tests__/__snapshots__/main-test.js.snap

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -982,10 +982,9 @@ Object {
982982
"props": Object {
983983
"color": Object {
984984
"description": "",
985-
"required": false,
985+
"required": true,
986986
"type": Object {
987-
"name": "custom",
988-
"raw": "PropTypes.string.isRequired",
987+
"name": "string",
989988
},
990989
},
991990
"id": Object {
@@ -996,8 +995,7 @@ Object {
996995
"description": "",
997996
"required": false,
998997
"type": Object {
999-
"name": "custom",
1000-
"raw": "PropTypes.string",
998+
"name": "string",
1001999
},
10021000
},
10031001
},

src/__tests__/fixtures/component_18.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
import React from 'react';
3+
import PropTypes from 'prop-types';
34
import extendStyles from 'enhancers/extendStyles';
45

56
type Props = $ReadOnly<{|
@@ -19,4 +20,4 @@ ColoredView.defaultProps = {
1920
id: 'test-forward-ref-default'
2021
}
2122

22-
module.exports = extendStyles(ColoredView);
23+
module.exports = extendStyles(ColoredView);

0 commit comments

Comments
 (0)