Created
May 26, 2021 14:21
-
-
Save sergueyarellano/d5d5ae2753a44964fbb4824e7d0f7801 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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