UNPKG

@polkadot/api-provider

Version:
20 lines (16 loc) 499 B
// Copyright 2017-2018 @polkadot/api-provider authors & contributors // This software may be modified and distributed under the terms // of the ISC license. See the LICENSE file for details. import Ws from './index'; describe('state', () => { it('requires an ws:// prefixed endpoint', () => { expect( () => new Ws('http://', false) ).toThrow(/with 'ws/); }); it('allows wss:// endpoints', () => { expect( () => new Ws('wss://', false) ).not.toThrow(); }); });