mirror of
https://github.com/pezkuwichain/pezkuwi-dev.git
synced 2026-04-22 03:17:57 +00:00
Initial rebrand: @polkadot -> @pezkuwi (3 packages)
- 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
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
// 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');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user