/*
Copyright (c) 2018 Uber Technologies, Inc.

This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
import { getSharedProps } from '../utils.js';
import { ADJOINED, SIZE } from '../index.js';
test('Utils - getSharedProps', function () {
  var props = {
    id: 'id',
    inputRef: {
      current: {
        focus: function focus() {}
      }
    },
    adjoined: ADJOINED.none,
    size: SIZE.default,
    required: false,
    disabled: false,
    error: false,
    value: 'value',
    placeholder: 'placeholder',
    onChange: jest.fn(),
    autoFocus: false,
    isFocused: false
  };
  var state = {
    isFocused: true
  }; // $FlowFixMe

  expect(getSharedProps(props, state)).toMatchSnapshot('getSharedProps returns correct object');
});