Skip to content

Commit 0c6b1c5

Browse files
chrisbobbegnprice
authored andcommitted
internalLinks tests: Test all flavors of "special" narrow
1 parent adac805 commit 0c6b1c5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/utils/__tests__/internalLinks-test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import {
1515
isStreamNarrow,
1616
isTopicNarrow,
1717
isSpecialNarrow,
18+
ALL_PRIVATE_NARROW,
19+
MENTIONED_NARROW,
1820
} from '../narrow';
1921
import {
2022
isNarrowLink,
@@ -387,7 +389,9 @@ describe('getNarrowFromNarrowLink (part 2)', () => {
387389
});
388390

389391
test('on a special link', () => {
390-
expect(get('https://example.com/#narrow/is/starred', [])).toEqual(STARRED_NARROW);
392+
expect(get('/#narrow/is/private', [])).toEqual(ALL_PRIVATE_NARROW);
393+
expect(get('/#narrow/is/starred', [])).toEqual(STARRED_NARROW);
394+
expect(get('/#narrow/is/mentioned', [])).toEqual(MENTIONED_NARROW);
391395
});
392396

393397
test('on a message link', () => {

0 commit comments

Comments
 (0)