BlueWallet/tests/integration/notifications.test.js
2020-07-31 16:44:19 +01:00

11 lines
525 B
JavaScript

/* global it, describe */
const assert = require('assert');
const notifications = require('../../blue_modules/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')));
});
});