UNPKG

playwright-fluent

Version:
26 lines (25 loc) 994 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 not visible in viewport', () => { // eslint-disable-next-line @typescript-eslint/no-empty-function beforeEach(() => { }); test('should return true when handle is undefined', async () => { // Given const handle = undefined; // When const result = await SUT.isHandleNotVisibleInViewport(handle, is_handle_visible_1.defaultVerboseOptions); // Then expect(result).toBe(true); }); test('should return true when handle is null', async () => { // Given const handle = null; // When const result = await SUT.isHandleNotVisibleInViewport(handle, is_handle_visible_1.defaultVerboseOptions); // Then expect(result).toBe(true); }); });