fix: Test snapshot (#11395)

This commit is contained in:
Tom Moor
2026-02-08 18:28:35 -05:00
committed by GitHub
parent ea9e9675fb
commit dc9aad99e9
2 changed files with 9 additions and 5 deletions
@@ -5,6 +5,10 @@ import allNodes from "@server/test/fixtures/notion-page.json";
import type { NotionPage } from "./NotionConverter";
import { NotionConverter } from "./NotionConverter";
jest.mock("node:crypto", () => ({
randomUUID: jest.fn(() => "550e8400-e29b-41d4-a716-446655440000"),
}));
describe("NotionConverter", () => {
it("converts a page", () => {
const response = NotionConverter.page({
@@ -608,7 +608,7 @@ exports[`NotionConverter converts a page 1`] = `
},
{
"attrs": {
"id": "dbbc3e60-556f-4605-90bd-104549175d0a",
"id": "550e8400-e29b-41d4-a716-446655440000",
},
"content": [
{
@@ -636,7 +636,7 @@ exports[`NotionConverter converts a page 1`] = `
},
{
"attrs": {
"id": "28cfd075-c823-4fd8-87aa-7a7dbe0c6b43",
"id": "550e8400-e29b-41d4-a716-446655440000",
},
"content": [
{
@@ -670,7 +670,7 @@ exports[`NotionConverter converts a page 1`] = `
},
{
"attrs": {
"id": "00fd4f20-7731-41c6-b813-b6f75d6dc756",
"id": "550e8400-e29b-41d4-a716-446655440000",
},
"content": [
{
@@ -1944,7 +1944,7 @@ exports[`NotionConverter converts a page 1`] = `
},
{
"attrs": {
"id": "34e5d753-324f-4e7a-86d3-ed205eea89e1",
"id": "550e8400-e29b-41d4-a716-446655440000",
},
"content": [
{
@@ -1980,7 +1980,7 @@ exports[`NotionConverter converts a page 1`] = `
},
{
"attrs": {
"id": "9479afdb-1169-415f-bf5e-0f00d2145702",
"id": "550e8400-e29b-41d4-a716-446655440000",
},
"content": [
{