BlueWallet/tests/integration/notifications.test.js
2020-10-24 18:20:59 +01:00

11 lines
564 B
JavaScript

/* global it, describe */
import Notifications from '../../blue_modules/notifications';
const assert = require('assert');
Notifications.default = new Notifications();
describe('notifications', () => {
it('can check groundcontrol server uri validity', async () => {
assert.ok(await Notifications.isGroundControlUriValid('https://groundcontrol-bluewallet.herokuapp.com'));
assert.ok(!(await Notifications.isGroundControlUriValid('https://www.google.com')));
assert.ok(!(await Notifications.isGroundControlUriValid('https://localhost.com')));
});
});