mirror of
https://github.com/zap-proto/zap-es.git
synced 2026-11-02 16:36:48 +00:00
15 lines
431 B
TypeScript
15 lines
431 B
TypeScript
// Based on https://github.com/jdiaz5513/capnp-ts (MIT - Julián Díaz)
|
|
|
|
import { test, assert as t } from "vitest";
|
|
import * as capnp from "capnp-es";
|
|
|
|
import { Baz } from "../fixtures/import-bar.ts";
|
|
import { Foo } from "../fixtures/import-foo.ts";
|
|
|
|
test("schema imports", () => {
|
|
t.doesNotThrow(() => {
|
|
new capnp.Message().initRoot(Baz).bar = "bar";
|
|
new capnp.Message().initRoot(Foo)._initBaz().bar = "bar";
|
|
});
|
|
});
|