blob: 0103762734ff9f5510d6ef98c2440d99265b3fe7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Copyright 2018-2022 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));
});
|