2020-10-24 13:20:59 -04:00
|
|
|
import Notifications from '../../blue_modules/notifications';
|
2020-07-31 14:43:55 +01:00
|
|
|
const assert = require('assert');
|
2020-10-24 13:20:59 -04:00
|
|
|
Notifications.default = new Notifications();
|
2020-07-31 14:43:55 +01:00
|
|
|
describe('notifications', () => {
|
|
|
|
it('can check groundcontrol server uri validity', async () => {
|
2020-10-24 13:20:59 -04:00
|
|
|
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
|
|
|
});
|
|
|
|
});
|