Skip to content

Commit

Permalink
mocks: tune model universe mock.
Browse files Browse the repository at this point in the history
  • Loading branch information
narekhovhannisyan committed Dec 4, 2023
1 parent b520f56 commit 2b2775a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/__mocks__/model-universe/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ export class MockModel implements ModelPluginInterface {
configure(): Promise<ModelPluginInterface> {
return Promise.resolve(this);
}
execute(): Promise<any[]> {
execute(inputs: any): Promise<any[]> {
if (inputs[0].carbon) {
return Promise.resolve(inputs);
}

return Promise.resolve([{data: 'mock-data'}]);
}
}
Expand Down

0 comments on commit 2b2775a

Please sign in to comment.