e2ed
Version:
E2E testing framework over Playwright
13 lines (12 loc) • 407 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.assertValueIsString = assertValueIsString;
const error_1 = require("../error");
/**
* Asserts that the value is string.
*/
function assertValueIsString(value, check, payload) {
if (typeof value !== 'string') {
throw new error_1.E2edError('Asserted value is not a string', { check, payload, value });
}
}