feat(editor): add provider for base adapter (#11169)

This commit is contained in:
Saul-Mirone
2025-03-25 12:09:23 +00:00
parent df057b4c12
commit e84c60f53d
18 changed files with 50 additions and 55 deletions

View File

@@ -7,7 +7,7 @@ import { createJob } from '../utils/create-job.js';
import { getProvider } from '../utils/get-provider.js';
import { nanoidReplacement } from '../utils/nanoid-replacement.js';
getProvider();
const provider = getProvider();
describe('notion-text to snapshot', () => {
test('basic', () => {
@@ -98,7 +98,7 @@ describe('notion-text to snapshot', () => {
pageId: '',
};
const ntAdapter = new NotionTextAdapter(createJob());
const ntAdapter = new NotionTextAdapter(createJob(), provider);
const target = ntAdapter.toSliceSnapshot({
file: notionText,
workspaceId: '',