Skip to content

Instantly share code, notes, and snippets.

@sergueyarellano
Created May 26, 2021 14:21
Show Gist options
  • Save sergueyarellano/d5d5ae2753a44964fbb4824e7d0f7801 to your computer and use it in GitHub Desktop.
Save sergueyarellano/d5d5ae2753a44964fbb4824e7d0f7801 to your computer and use it in GitHub Desktop.
test('complyWith() should take an input object and some restrictions and check that the input complies with those', function ({ deepEqual, end }) {
const restrictions = [{ property: 'distance', operator: 'less than', value: '200' }]
const data = {
distance: 100
}
const actual = complyWith(data, restrictions)
const expected = true
deepEqual(actual, expected)
end()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment