UNPKG

@qntm-code/utils

Version:

A collection of useful utility functions with associated TypeScript types. All functions have been unit tested.

11 lines (10 loc) 502 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const createElement_spec_1 = require("../test-helpers/createElement.spec"); const getElementHeight_1 = require("./getElementHeight"); describe('getElementHeight', () => { it('should return the height of an element as a number', () => { const element = (0, createElement_spec_1.createElement)('div', { height: '100px' }); expect((0, getElementHeight_1.getElementHeight)(element)).toEqual(100); }); });