From ae5a10dffd9d483ced16718e3203b50a6ef91dad Mon Sep 17 00:00:00 2001 From: Josh Hundley Date: Wed, 12 May 2021 08:33:33 -0700 Subject: [PATCH] fix: cluster test --- web3.js/test/cluster.test.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/web3.js/test/cluster.test.ts b/web3.js/test/cluster.test.ts index dba174e03..4e1b81edb 100644 --- a/web3.js/test/cluster.test.ts +++ b/web3.js/test/cluster.test.ts @@ -10,9 +10,13 @@ describe('Cluster Util', () => { }); it('devnet', () => { - expect(clusterApiUrl()).to.eq('https://devnet.solana.com'); - expect(clusterApiUrl('devnet')).to.eq('https://devnet.solana.com'); - expect(clusterApiUrl('devnet', true)).to.eq('https://devnet.solana.com'); - expect(clusterApiUrl('devnet', false)).to.eq('http://devnet.solana.com'); + expect(clusterApiUrl()).to.eq('https://api.devnet.solana.com'); + expect(clusterApiUrl('devnet')).to.eq('https://api.devnet.solana.com'); + expect(clusterApiUrl('devnet', true)).to.eq( + 'https://api.devnet.solana.com', + ); + expect(clusterApiUrl('devnet', false)).to.eq( + 'http://api.devnet.solana.com', + ); }); });