UNPKG

@r4ai/remark-embed

Version:

[![JSR](https://jsr.io/badges/@r4ai/remark-embed)](https://jsr.io/@r4ai/remark-embed) [![codecov](https://codecov.io/gh/r4ai/remark-embed/graph/badge.svg?token=B9EZXC0PR8)](https://codecov.io/gh/r4ai/remark-embed) [![CI](https://github.com/r4ai/remark-emb

24 lines (23 loc) 842 B
import { describe, expectTypeOf, test } from "vitest"; describe("OEmbed schema types", () => { test("OEmbed base schema type", () => { expectTypeOf().toEqualTypeOf(); }); test("OEmbed photo schema type", () => { // Without `.branded`, following expectation will fail. // See: https://github.com/vitest-dev/vitest/issues/4114#issuecomment-2265570767 expectTypeOf().branded.toEqualTypeOf(); }); test("OEmbed video schema type", () => { expectTypeOf().branded.toEqualTypeOf(); }); test("OEmbed link schema type", () => { expectTypeOf().branded.toEqualTypeOf(); }); test("OEmbed rich schema type", () => { expectTypeOf().branded.toEqualTypeOf(); }); test("OEmbed schemas type", () => { expectTypeOf().branded.toEqualTypeOf(); }); });