#!/bin/bash
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# create_class.js
printf "create_class.js:4:7 = "
assert_ok "$FLOW" type-at-pos create_class.js 4 7 --strip-root
printf "create_class.js:19:7 = "
assert_ok "$FLOW" type-at-pos create_class.js 19 7 --strip-root
printf "create_class.js:31:7 = "
assert_ok "$FLOW" type-at-pos create_class.js 31 7 --strip-root

# create_class_state.js
printf "create_class_state.js:16:5 = "
assert_ok "$FLOW" type-at-pos create_class_state.js 16 5 --strip-root

# lazy_ref.js
printf "lazy_ref.js:14:9 = "
assert_ok "$FLOW" type-at-pos lazy_ref.js 14 9 --strip-root
printf "lazy_ref.js:19:9 = "
assert_ok "$FLOW" type-at-pos lazy_ref.js 19 9 --strip-root

# react_component.js
printf "react_component.js:3:9 = "
assert_ok "$FLOW" type-at-pos react_component.js 3 9 --strip-root
printf "react_component.js:13:33 = "
assert_ok "$FLOW" type-at-pos react_component.js 13 33 --strip-root
printf "react_component.js:18:17 = "
assert_ok "$FLOW" type-at-pos react_component.js 18 17 --strip-root
printf "react_component.js:31:7 = "
assert_ok "$FLOW" type-at-pos react_component.js 31 7 --strip-root --pretty --expand-json-output
printf "react_component.js:32:13 = "
assert_ok "$FLOW" type-at-pos react_component.js 32 13 --strip-root --pretty --expand-json-output
printf "react_component.js:32:29 = "
assert_ok "$FLOW" type-at-pos react_component.js 32 29 --strip-root --pretty --expand-json-output

# react.js
printf "react.js:2:7 = "
assert_ok "$FLOW" type-at-pos react.js 2 7 --strip-root

printf "react_abstract_component.js:3:15 = "
assert_ok "$FLOW" type-at-pos react_abstract_component.js 3 15 --strip-root
