fix: cluster test

This commit is contained in:
Josh Hundley 2021-05-12 08:33:33 -07:00 committed by Tyera Eulberg
parent 0f3045fb68
commit ae5a10dffd
1 changed files with 8 additions and 4 deletions

View File

@ -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',
);
});
});