Skip to content

Commit

Permalink
Removed console statements in test file
Browse files Browse the repository at this point in the history
  • Loading branch information
sakuntala-motukuri committed Jul 9, 2024
1 parent f49cdee commit 8cb9080
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions plugins/async-node/core/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,19 +125,14 @@ test("replaces async nodes with provided node", async () => {
});

let deferredResolve: ((value: any) => void) | undefined;
let value=0;
plugin.hooks.onAsyncNode.tap("test", async (node: Node.Node) => {
console.log('value1--',value++);

plugin.hooks.onAsyncNode.tap("test", async (node: Node.Node) => {
return new Promise((resolve) => {
deferredResolve = resolve;
console.log('value inside--',value++);
});
});
let updateNumber = 0;

console.log("updateNumber--", updateNumber);

const player = new Player({ plugins: [plugin] });

player.hooks.viewController.tap("async-node-test", (vc) => {
Expand All @@ -148,15 +143,11 @@ test("replaces async nodes with provided node", async () => {
});
});

console.log("No after updateNumber--", updateNumber);

player.start(basicFRFWithActions as any);

let view = (player.getState() as InProgressState).controllers.view.currentView
?.lastUpdate;

console.log("view--", view);

expect(view).toBeDefined();
expect(view?.actions[0].asset.type).toBe("action");
expect(view?.actions[1]).toBeUndefined();
Expand Down

0 comments on commit 8cb9080

Please sign in to comment.