UNPKG

playwright-fluent

Version:
26 lines (25 loc) 953 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const SUT = tslib_1.__importStar(require("../index")); const is_handle_visible_1 = require("../is-handle-visible"); describe('handle is visible', () => { // eslint-disable-next-line @typescript-eslint/no-empty-function beforeEach(() => { }); test('should return false when handle is undefined', async () => { // Given const handle = undefined; // When const result = await SUT.isHandleVisible(handle, is_handle_visible_1.defaultVerboseOptions); // Then expect(result).toBe(false); }); test('should return false when handle is null', async () => { // Given const handle = null; // When const result = await SUT.isHandleVisible(handle, is_handle_visible_1.defaultVerboseOptions); // Then expect(result).toBe(false); }); });