1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-15 20:08:08 -05:00
denoland-deno/cli/tests/unit/navigator_test.ts

12 lines
339 B
TypeScript
Raw Normal View History

2022-01-20 02:10:16 -05:00
// 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));
});