15 lines
453 B
TypeScript
15 lines
453 B
TypeScript
import { describe, it, expect } from "vitest";
|
|
import { NoopAnalyticsService } from "./noop";
|
|
|
|
describe("NoopAnalyticsService", () => {
|
|
it("should not throw on track", () => {
|
|
const service = new NoopAnalyticsService();
|
|
expect(() => service.track("test")).not.toThrow();
|
|
});
|
|
|
|
it("should not throw on trackPageview", () => {
|
|
const service = new NoopAnalyticsService();
|
|
expect(() => service.trackPageview()).not.toThrow();
|
|
});
|
|
});
|