"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/modules/link_previews_test.js" between
Signal-Desktop-1.35.2.tar.gz and Signal-Desktop-1.36.1.tar.gz

About: Signal-Desktop is a cross-platform encrypted messaging service (also available for mobile devices).

link_previews_test.js  (Signal-Desktop-1.35.2):link_previews_test.js  (Signal-Desktop-1.36.1)
skipping to change at line 433 skipping to change at line 433
assert.strictEqual(isLinkSneaky(link), true); assert.strictEqual(isLinkSneaky(link), true);
}); });
it('returns true for auth (or pretend auth)', () => { it('returns true for auth (or pretend auth)', () => {
const link = 'http://whatever.com&login=someuser@77777777'; const link = 'http://whatever.com&login=someuser@77777777';
assert.strictEqual(isLinkSneaky(link), true); assert.strictEqual(isLinkSneaky(link), true);
}); });
it("returns true if the domain doesn't contain a .", () => { it("returns true if the domain doesn't contain a .", () => {
assert.isTrue(isLinkSneaky('https://example')); assert.isTrue(isLinkSneaky('https://example'));
assert.isTrue(isLinkSneaky('https://localhost'));
assert.isTrue(isLinkSneaky('https://localhost:3000'));
}); });
it('returns true if the domain has any empty labels', () => { it('returns true if the domain has any empty labels', () => {
assert.isTrue(isLinkSneaky('https://example.')); assert.isTrue(isLinkSneaky('https://example.'));
assert.isTrue(isLinkSneaky('https://example.com.')); assert.isTrue(isLinkSneaky('https://example.com.'));
assert.isTrue(isLinkSneaky('https://.example.com')); assert.isTrue(isLinkSneaky('https://.example.com'));
assert.isTrue(isLinkSneaky('https://..example.com')); assert.isTrue(isLinkSneaky('https://..example.com'));
}); });
it('returns true if the domain is longer than 2048 UTF-16 code points', () = > { it('returns true if the domain is longer than 2048 UTF-16 code points', () = > {
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)