deno.land / x / esm@v135_2 / test / issue-750 / issue-750.test.ts

issue-750.test.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { assert } from "https://deno.land/std@0.180.0/testing/asserts.ts";
import * as element from "http://localhost:8080/@lume/element@0.10.1?target=esnext";import * as variable from "http://localhost:8080/@lume/variable@0.10.1";
Deno.test("issue #750", () => { assert(checkKeys(element, variable));});
// check keys of an object in another objectfunction checkKeys(a: object, b: object) { for (const key in b) { if (!(key in a)) { console.error(`key ${key} is missing in b`); return false; } } return true;}
esm

Version Info

Tagged at
a year ago