Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

553 B
Raw Blame
import { getExampleComponentImportPath } from "./get-example-component-import-path";

describe("CLI > getExampleImportPath", () => {
  it("should return a valid example import path", () => {
    expect(getExampleComponentImportPath()).toBe(
      `<path-to-your-components>/metabase`,
    );

    expect(getExampleComponentImportPath("./src/modules/analytics")).toBe(
      `<path-to-your-components>/analytics`,
    );

    expect(getExampleComponentImportPath("components/metabase")).toBe(
      `<path-to-your-components>/metabase`,
    );
  });
});