mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
Add tests: localhost is a "sneaky link"
This commit is contained in:
committed by
Scott Nonnenberg
parent
7a02cc815d
commit
a04f9a0e51
@@ -430,6 +430,8 @@ describe('Link previews', () => {
|
|||||||
|
|
||||||
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', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user