Created
May 26, 2021 14:16
-
-
Save sergueyarellano/696062ae3a40f8c84a79ba91b62a2fd2 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
const get = require('lodash.get') | |
defineStep('{string} property has more than {int} element', async function (property, number) { | |
const propFromResponse = get(this.response, property, []) | |
const actual = propFromResponse.length > number | |
const expected = true | |
deepStrictEqual(actual, expected) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment