UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

20 lines (16 loc) 719 B
"use strict"; var _chai = require("chai"); var _executionEnvironment = require("../execution-environment"); /* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */ /* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */ describe('Execution Environment: ', function () { it('Window and Document/DOM exists, elements can be created', function () { (0, _chai.expect)(_executionEnvironment.canUseDOM).to.be.true; }); it('Event Listeners can be created', function () { (0, _chai.expect)(_executionEnvironment.canUseEventListeners).to.be.true; }); it('Viewport exists', function () { (0, _chai.expect)(_executionEnvironment.canUseViewport).to.be.true; }); });