playwright-fluent
Version:
Fluent API around playwright
25 lines (24 loc) • 838 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const SUT = tslib_1.__importStar(require("../index"));
describe('get attribute of handle', () => {
// eslint-disable-next-line @typescript-eslint/no-empty-function
beforeEach(() => { });
test('should return null when handle is undefined', async () => {
// Given
const handle = undefined;
// When
const result = await SUT.getAttributeOfHandle('foobar', handle);
// Then
expect(result).toBeNull();
});
test('should return null when handle is null', async () => {
// Given
const handle = null;
// When
const result = await SUT.getAttributeOfHandle('foobar', handle);
// Then
expect(result).toBeNull();
});
});
;