UNPKG

rx-player

Version:
14 lines (12 loc) 590 B
import { describe, it, expect } from "vitest"; import type { IFeaturesObject } from "../../../features/types"; import createDebugElement from "../../../main_thread/api/debug"; import addDebugElementFeature from "../debug_element"; describe("Features list - DEBUG_ELEMENT", () => { it("should add DEBUG_ELEMENT in the current features", () => { const featureObject = {} as unknown as IFeaturesObject; addDebugElementFeature(featureObject); expect(featureObject).toEqual({ createDebugElement }); expect(featureObject.createDebugElement).toBe(createDebugElement); }); });