mirror of
https://github.com/pezkuwichain/pezkuwi-dev.git
synced 2026-04-21 23:48:03 +00:00
8d28b36f9c
- Package namespace: @polkadot/dev -> @pezkuwi/dev - Repository: polkadot-js/dev -> pezkuwichain/pezkuwi-dev - Author: Pezkuwi Team <team@pezkuwichain.io> Packages: - @pezkuwi/dev (build tools, linting, CI scripts) - @pezkuwi/dev-test (test runner) - @pezkuwi/dev-ts (TypeScript build) Upstream: polkadot-js/dev v0.83.3
27 lines
668 B
TypeScript
27 lines
668 B
TypeScript
// Copyright 2017-2025 @polkadot/dev-test authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { browser } from './browser.js';
|
|
|
|
const all = browser();
|
|
|
|
describe('browser', () => {
|
|
it('contains window', () => {
|
|
expect(all.window).toBeDefined();
|
|
});
|
|
|
|
it('contains a crypto implementation', () => {
|
|
expect(all.crypto).toBeTruthy();
|
|
expect(typeof all.crypto.getRandomValues).toBe('function');
|
|
});
|
|
|
|
it('contains the top-level objects', () => {
|
|
expect(all.document).toBeDefined();
|
|
expect(all.navigator).toBeDefined();
|
|
});
|
|
|
|
it('contains HTML*Element', () => {
|
|
expect(typeof all.HTMLElement).toBe('function');
|
|
});
|
|
});
|