Browse files

Flow strict ScrollViewMock (#22103)

Related to #22100

Turn Flow strict mode on for ScrollViewMock.
This file used to declare jest var as `any` but jest module is already typed in root flow folder.

Note: I had to use a quick fix for polyfillPromise. See here #22101

- All flow tests succeed.

[GENERAL] [ENHANCEMENT] [ScrollViewMock.js] - Flow strict mode
Pull Request resolved: #22103

Differential Revision: D12918380

Pulled By: TheSavior

fbshipit-source-id: cd3aba47b1a43e76a7da09e15cc2d9cfcdf7f56d
  • Loading branch information...
exced authored and facebook-github-bot committed Nov 4, 2018
1 parent cc13a73 commit 499c195ebab0f276e3a58baf1e6172c1ba046a9e
Showing with 1 addition and 3 deletions.
  1. +1 −3 Libraries/Components/ScrollView/__mocks__/ScrollViewMock.js
@@ -5,15 +5,13 @@
* LICENSE file in the root directory of this source tree.
* @format
* @flow
* @flow strict-local

/* eslint-env jest */

'use strict';

declare var jest: any;

const React = require('React');
const View = require('View');

0 comments on commit 499c195

Please sign in to comment.