mirror of
https://github.com/denoland/deno.git
synced 2024-12-29 10:39:10 -05:00
10e4b2e140
Yearly tradition of creating extra noise in git.
11 lines
339 B
TypeScript
11 lines
339 B
TypeScript
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
import { assert } from "./test_util.ts";
|
|
|
|
Deno.test(function navigatorNumCpus() {
|
|
assert(navigator.hardwareConcurrency > 0);
|
|
});
|
|
|
|
Deno.test(function navigatorUserAgent() {
|
|
const pattern = /Deno\/\d+\.\d+\.\d+/;
|
|
assert(pattern.test(navigator.userAgent));
|
|
});
|