UNPKG

k8s-features

Version:

A Cucumber-js base library for Kubernetes Gherkin tests, with base world class, basic steps, reusable utility functions and k8s client

19 lines (17 loc) 550 B
const { Then } = require('@cucumber/cucumber'); Then( 'kinds in apiVersion {word} do not exist:', /** * @this import("../support/world.cjs").MyWorld * @param {string} apiVersion * @param {import("@cucumber/cucumber").DataTable} dataTable * @returns {Promise} */ async function (apiVersion, dataTable) { const kinds = dataTable ? dataTable.raw().map(r => r[0]) : []; if (kinds.length < 1) { throw new Error('At least one kind must be specified'); } await this.kindsDoNotExist(apiVersion, ...kinds); }, );