UNPKG

safe-apps-sdk

Version:

SDK developed to integrate third-party apps with Safe app.

18 lines (14 loc) 464 B
import SDK from './index'; describe('Safe apps SDK', () => { let sdkInstance: SDK; describe('initSdk', () => { test('Should initialize with opts', () => { sdkInstance = new SDK({ allowedDomains: [/http:\/\/localhost:3000/] }); expect(sdkInstance.txs.send).not.toBeUndefined(); }); test('Should initialize without opts', () => { sdkInstance = new SDK(); expect(sdkInstance.txs.send).not.toBeUndefined(); }); }); });