Skip to content

Commit

Permalink
fix: incorrect test
Browse files Browse the repository at this point in the history
  • Loading branch information
surajair committed May 1, 2024
1 parent 0d1f902 commit 8c86d3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/functions/InsertBlockAtIndex.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { insertBlockAtIndex } from "./InsertBlockAtIndex.ts";

describe("insertBlockAtIndex", () => {
it("should add new blocks to the end if parent doesn't exist", () => {
const blocks = insertBlockAtIndex([{ _id: "1", _type: "Box" }], null, 0, [{ _id: "2", _type: "Box" }], true);
const blocks = insertBlockAtIndex([{ _id: "1", _type: "Box" }], null, 1, [{ _id: "2", _type: "Box" }], true);
expect(blocks).toEqual([
{ _id: "1", _type: "Box" },
{ _id: "2", _type: "Box" },
Expand Down

0 comments on commit 8c86d3e

Please sign in to comment.