Skip to content

Commit

Permalink
Fixing failing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pauan committed Sep 19, 2024
1 parent 6a9f59f commit a14fdfd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions sdk/tests/network-client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ describe('NodeConnection', () => {
});

it('should throw an error if the request fails', async () => {
expect(await connection.getBlockRange(999999999, 1000000000)).deep.equal([]);
await expectThrows(
() => connection.getBlockRange(999999999, 1000000000),
"Error fetching blocks between 999999999 and 1000000000.",
);
});
});

Expand Down Expand Up @@ -103,7 +106,7 @@ describe('NodeConnection', () => {

expect(windowFetchSpy.args).deep.equal([
[
"https://api.explorer.provable.com/v1",
"https://api.explorer.provable.com/v1/%%NETWORK%%/latest/block",
{
"headers": {
// @TODO: Run the Jest tests on the compiled Rollup code,
Expand Down
2 changes: 1 addition & 1 deletion wasm/src/types/networks/mainnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ pub use snarkvm_console::network::MainnetV0 as CurrentNetwork;

pub use snarkvm_parameters::mainnet as parameters;

pub const BASE_URL: &'static str = "https://parameters.provable.com/mainnet/";
pub const BASE_URL: &'static str = "https://parameters.aleo.org/mainnet/";
2 changes: 1 addition & 1 deletion wasm/src/types/networks/testnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ pub use snarkvm_console::network::TestnetV0 as CurrentNetwork;

pub use snarkvm_parameters::testnet as parameters;

pub const BASE_URL: &'static str = "https://parameters.provable.com/testnet/";
pub const BASE_URL: &'static str = "https://parameters.aleo.org/testnet/";

0 comments on commit a14fdfd

Please sign in to comment.