UNPKG

playwright-fluent

Version:
17 lines (16 loc) 748 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const SUT = tslib_1.__importStar(require("../index")); describe('are options (by value) already selected in handle', () => { // eslint-disable-next-line @typescript-eslint/no-empty-function beforeEach(() => { }); test('should throw an error when no options are passed', async () => { // Given const handle = undefined; // When // Then const expectedError = new Error("You must specify at least one option for selector 'foobar'"); await SUT.areOptionsByValueAlreadySelectedInHandle(handle, 'foobar', []).catch((error) => expect(error).toMatchObject(expectedError)); }); });