Skip to content

Commit

Permalink
fixed test typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-w-nick committed Feb 1, 2025
1 parent 223c34c commit 19d1fb7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion libs/langgraph/src/tests/channels.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ describe("AnyValue", () => {
});
});

describe("EphemeralValue with gaurd: false", () => {
describe("EphemeralValue with guard: false", () => {
it("should handle ephemeral value correctly", () => {
const channel = new EphemeralValue<number>(false);

Expand Down
8 changes: 4 additions & 4 deletions libs/langgraph/src/tests/func.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ export function runFuncTests(
expect(() =>
entrypoint(
{ name: "graph", checkpointer },
// we need ts-expect-error here because the type system also gaurds against this
// we need ts-expect-error here because the type system also guards against this
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
function* () {
Expand All @@ -374,7 +374,7 @@ export function runFuncTests(
expect(() =>
entrypoint(
{ name: "graph", checkpointer },
// we need ts-expect-error here because the type system also gaurds against this
// we need ts-expect-error here because the type system also guards against this
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
async function* () {
Expand All @@ -392,7 +392,7 @@ export function runFuncTests(
expect(() =>
task(
"task",
// we need ts-expect-error here because the type system also gaurds against this
// we need ts-expect-error here because the type system also guards against this
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
function* () {
Expand All @@ -409,7 +409,7 @@ export function runFuncTests(
expect(() =>
task(
"task",
// we need ts-expect-error here because the type system also gaurds against this
// we need ts-expect-error here because the type system also guards against this
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
async function* () {
Expand Down
2 changes: 1 addition & 1 deletion libs/langgraph/src/tests/pregel.read.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe("PregelNode", () => {
});

describe("getNode", () => {
it("should return undefined if bound is default andthere are no writers", () => {
it("should return undefined if bound is default and there are no writers", () => {
// set up test
const pregelNode = new PregelNode({
channels: ["foo"],
Expand Down
6 changes: 3 additions & 3 deletions libs/langgraph/src/tests/pregel.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6240,7 +6240,7 @@ graph TD;
const { store } = config;
expect(store).toBeDefined();
if (!store) {
throw new Error("No store foubd");
throw new Error("No store found");
}

expect(config.configurable?.assistant_id).toEqual("a");
Expand All @@ -6260,7 +6260,7 @@ graph TD;
const { store } = config;
expect(store).toBeDefined();
if (!store) {
throw new Error("No store foubd");
throw new Error("No store found");
}

expect(config.configurable?.assistant_id).toEqual("a");
Expand Down Expand Up @@ -6414,7 +6414,7 @@ graph TD;

// below combo of assertions is asserting two things
// - outer_1 finishes before inner interrupts (because we see its output in stream, which only happens after node finishes)
// - the writes of outer are persisted in 1st call and used in 2nd call, ie outer isn't called again (because we dont see outer_1 output again in 2nd stream)
// - the writes of outer are persisted in 1st call and used in 2nd call, ie outer isn't called again (because we don't see outer_1 output again in 2nd stream)
// test stream updates w/ nested interrupt
const config2 = { configurable: { thread_id: "2" } };

Expand Down

0 comments on commit 19d1fb7

Please sign in to comment.