Fully end to end encrypted anonymous chat program. Server only stores public key lookup for users and the encrypted messages. No credentials are transfered to the server, but kept in local browser storage. This allows 100% safe chatting. https://safechat.ch
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
872 B

(typeof window !== 'undefined' ? window : global).resolves = function(val) {
return new Promise(function(res) { res(val); });
};
(typeof window !== 'undefined' ? window : global).rejects = function(val) {
return new Promise(function(res, rej) { rej(val); });
};
(typeof window !== 'undefined' ? window : global).tryTests = function(name, tests, options) {
if (options.if) {
describe(name, function() {
if (options.before) { before(options.before); }
if (options.beforeEach) { beforeEach(options.beforeEach); }
tests();
if (options.afterEach) { afterEach(options.afterEach); }
if (options.after) { after(options.after); }
});
} else {
describe.skip(name + ' (no support --> skipping tests)', tests);
}
};
describe('Unit Tests', function () {
require('./crypto');
require('./general');
require('./worker');
});