@r4ai/remark-embed
Version:
[](https://jsr.io/@r4ai/remark-embed) [](https://codecov.io/gh/r4ai/remark-embed) [ • 842 B
JavaScript
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();
});
});