14 lines
409 B
TypeScript
14 lines
409 B
TypeScript
import { describe, expect, test } from "vitest";
|
|
|
|
import manifest from "../src/manifest.json";
|
|
|
|
describe("manifest", () => {
|
|
test("injects the content script on the www Xingtu market page", () => {
|
|
expect(manifest.content_scripts?.[0]?.matches).toEqual(
|
|
expect.arrayContaining([
|
|
expect.stringMatching(/^https:\/\/(\*\.|www\.)?xingtu\.cn\/ad\/creator\/market\*$/)
|
|
])
|
|
);
|
|
});
|
|
});
|