BlueWallet/tests/integration/notifications.test.js

11 lines
538 B
JavaScript
Raw Normal View History

import Notifications from '../../blue_modules/notifications';
2020-07-31 14:43:55 +01:00
const assert = require('assert');
Notifications.default = new Notifications();
2020-07-31 14:43:55 +01:00
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')));
2020-07-31 14:43:55 +01:00
});
});