2020-01-02 15:13:47 -05:00
|
|
|
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
2020-09-27 06:22:32 -04:00
|
|
|
import { assert, unitTest } from "./test_util.ts";
|
2018-09-20 02:13:59 -04:00
|
|
|
|
2020-03-04 11:31:14 -05:00
|
|
|
unitTest(function buildInfo(): void {
|
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
|
|
|
});
|