Skip to content

Commit

Permalink
fixup! fix(coin:tezos): api iterates over all results
Browse files Browse the repository at this point in the history
  • Loading branch information
jprudent committed Feb 7, 2025
1 parent 591dc1b commit 519ead5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
13 changes: 0 additions & 13 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,6 @@
"type": "node",
"request": "attach",
"skipFiles": ["<node_internals>/**"]
},
{
"type": "node",
"request": "launch",
"name": "Debug Jest Tests",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["--runInBand", "coin-tezoz", "api/index.test.ts"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"skipFiles": ["<node_internals>/**"],
"runtimeArgs": ["--inspect-brk"],
"sourceMaps": true,
"outFiles": ["${workspaceFolder}/dist/**/*.js"]
}
]
}
6 changes: 1 addition & 5 deletions libs/coin-modules/coin-tezos/src/api/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,9 @@ describe("get operations", () => {
logicGetTransactions.mockClear();
});

it("operations", async () => {
it("could return no operation", async () => {
logicGetTransactions.mockResolvedValue([[], ""]);

// When
const [operations, token] = await api.listOperations("addr", { minHeight: 100 });

// Then
expect(operations).toEqual([]);
expect(token).toEqual("");
});
Expand Down

0 comments on commit 519ead5

Please sign in to comment.