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