forked from facebook/react
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tests to not warn due to moved PropTypes and shallowRenderer (f…
…acebook#9486) * Update tests to not warn due to moved PropTypes and shallowRenderer We added some warnings in v15.5 for calling `React.PropTypes` and calling the shallow renderer from the wrong place. These warnings were causing test failures, and now they are fixed. Most of these were for the `React.PropTypes` change. * tweak from running prettier * Final tweaks to get tests passing **what is the change?:** Updated 'PropTypes' and 'shallow renderer' syntax in a couple more places to get tests passing. **why make this change?:** In order to verify any changes to the 15.6 and 15.* branches in general we should have tests passing. **test plan:** `npm run test` **issue:** facebook#9410
- Loading branch information
Showing
15 changed files
with
131 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/*! | ||
* Copyright 2015-present, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
*/ | ||
|
||
/** | ||
* TypeScript Definition File for React. | ||
* | ||
* Full type definitions are not yet officially supported. These are mostly | ||
* just helpers for the unit test. | ||
*/ | ||
|
||
declare module 'prop-types' { | ||
export var string : any; | ||
} |
Oops, something went wrong.