summaryrefslogtreecommitdiff
path: root/tests/unit/navigator_test.ts
blob: 5dcc423fa53d21fc32a2226711430d147dee1961 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright 2018-2024 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));
});