{"size": 661, "ext": "js", "max_stars_repo_path": "test/integration/binary.test.js", "max_stars_repo_name": "machobearstudio/hyperlane", "max_stars_repo_stars_event_min_datetime": "2017-10-11T22:59:46.000Z", "max_stars_repo_stars_event_max_datetime": "2018-07-24T00:00:43.000Z", "max_issues_repo_path": "test/integration/binary.test.js", "max_issues_repo_name": "machobearstudio/capillary", "max_issues_repo_issues_event_min_datetime": "2018-02-02T00:32:07.000Z", "max_issues_repo_issues_event_max_datetime": "2018-02-07T23:00:46.000Z", "max_forks_repo_path": "test/integration/binary.test.js", "max_forks_repo_name": "machobearstudio/hyperlane", "max_forks_repo_forks_event_min_datetime": "2017-10-16T19:10:34.000Z", "max_forks_repo_forks_event_max_datetime": "2018-02-05T22:01:50.000Z"}
{"max_stars_count": 11, "max_issues_count": 4, "max_forks_count": 4, "avg_line_length": 27.5416666667, "max_line_length": 98, "alphanum_fraction": 0.6051437216}
import { add, get, message } from '../../src'
import { given, verify } from '../../src'
import { anything, data, scope, sample } from '../samples'
import { messageOutput, scopeInvariant, dataInvariant, dataIs } from '../constraints'
import test from '../test'

const testFlows = [
  add(get('x'), get('y')),
  add(get('x'), 2),
  add(1, get('y'))
]

test(
  "Basic sequential operations",

  ["get value, get another value, summate", testFlows,
    given([ { x: 1, y: 2 }, ...data({ x: 1, y: 2 }), ...scope({ x: 1, y: 2 })], verify(dataIs(3)))
  ],

  ["doesn't break when provided invalid data", testFlows,
    given(anything, verify(dataIs(undefined)))
  ]
)
