Skip to content

Commit

Permalink
Fix docs, update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Jun 26, 2023
1 parent 3d3a438 commit 402d747
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 137 deletions.
2 changes: 1 addition & 1 deletion bindings/core/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub enum Response {
/// - [`GetProtocolParameters`](crate::method::ClientMethod::GetProtocolParameters)
ProtocolParameters(ProtocolParametersDto),
/// Response for:
/// - [`SignTransaction`](crate::method::ClientMethod::SignTransaction)
/// - [`SignTransaction`](crate::method::SecretManagerMethod::SignTransaction)
SignedTransaction(PayloadDto),
/// Response for:
/// - [`SignatureUnlock`](crate::method::SecretManagerMethod::SignatureUnlock)
Expand Down
9 changes: 3 additions & 6 deletions bindings/nodejs/tests/client/messageMethods.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,22 +78,19 @@ describe.skip('Block methods', () => {
// Skip by default, retryUntilIncluded can be slow
it.skip('retries a block', async () => {
const tips = await client.getTips();
const blockId = await client.postBlock(tips[1]);

expect(tips[0]).toBe(blockId);

// Retries (promotes or reattaches) a block for provided block id until it's included
// (referenced by a milestone). Default interval is 5 seconds and max attempts is 40.
const retryUntilIncluded = await client.retryUntilIncluded(
blockId,
tips[0],
2,
5,
);
//Returns the included block at first position and additional reattached blocks
expect(retryUntilIncluded[0][0]).toBe(blockId);
expect(retryUntilIncluded[0][0]).toBe(tips[0]);

// Returns expected error: no need to promote or reattach.
await expect(client.retry(blockId)).rejects.toMatch(
await expect(client.retry(tips[0])).rejects.toMatch(
'NoNeedPromoteOrReattach',
);
});
Expand Down
130 changes: 0 additions & 130 deletions bindings/nodejs/tests/client/offlineSigningExamples.spec.ts

This file was deleted.

0 comments on commit 402d747

Please sign in to comment.