18 lines
502 B
TypeScript
18 lines
502 B
TypeScript
import { describe, expect, it, vi } from 'vitest';
|
|
import { defineContentScript } from '~/client/content-scripts/define-content-script';
|
|
import { ContentScriptDefinition } from '~/types';
|
|
|
|
describe('defineContentScript', () => {
|
|
it('should return the object passed in', () => {
|
|
const definition: ContentScriptDefinition = {
|
|
matches: [],
|
|
include: [''],
|
|
main: vi.fn(),
|
|
};
|
|
|
|
const actual = defineContentScript(definition);
|
|
|
|
expect(actual).toEqual(definition);
|
|
});
|
|
});
|