2024-01-01 14:58:21 -05:00
|
|
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2021-11-23 11:45:18 -05:00
|
|
|
import { assert } from "./test_util.ts";
|
2018-09-20 02:13:59 -04:00
|
|
|
|
2021-11-23 11:45:18 -05:00
|
|
|
Deno.test(function buildInfo() {
|
2019-03-06 16:54:58 -05:00
|
|
|
// Deno.build is injected by rollup at compile time. Here
|
2018-10-02 12:25:49 -04:00
|
|
|
// we check it has been properly transformed.
|
2019-03-06 16:54:58 -05:00
|
|
|
const { arch, os } = Deno.build;
|
2020-04-28 12:35:23 -04:00
|
|
|
assert(arch.length > 0);
|
|
|
|
assert(os === "darwin" || os === "windows" || os === "linux");
|
2018-09-20 02:13:59 -04:00
|
|
|
});
|