@tsed/schema
Version:
JsonSchema module for Ts.ED Framework
17 lines (14 loc) • 353 B
text/typescript
import {JsonMethodStore, View} from "../../index.js";
describe("@View", () => {
it("should set metadata", () => {
class Test {
("page", {test: "test"})
test() {}
}
const endpoint = JsonMethodStore.get(Test, "test");
expect(endpoint.view).toEqual({
path: "page",
options: {test: "test"}
});
});
});