@@ -117,11 +117,7 @@ describe('isNarrowLink', () => {
117
117
} ) ;
118
118
119
119
describe ( 'getLinkType' , ( ) => {
120
- test ( 'links to a different domain are of "non-narrow" type' , ( ) => {
121
- expect ( getLinkType ( new URL ( 'https://google.com/some-path' ) , realm ) ) . toBe ( 'non-narrow' ) ;
122
- } ) ;
123
-
124
- test ( 'only in-app link containing "stream" is a stream link' , ( ) => {
120
+ test ( 'only link containing "stream" is a stream link' , ( ) => {
125
121
expect ( getLinkType ( new URL ( '/#narrow/pm-with/1,2-group' , realm ) , realm ) ) . toBe ( 'pm' ) ;
126
122
expect ( getLinkType ( new URL ( '/#narrow/stream/jest' , realm ) , realm ) ) . toBe ( 'stream' ) ;
127
123
expect ( getLinkType ( new URL ( '/#narrow/stream/stream/' , realm ) , realm ) ) . toBe ( 'stream' ) ;
@@ -154,7 +150,7 @@ describe('getLinkType', () => {
154
150
) ;
155
151
} ) ;
156
152
157
- test ( 'only in-app link containing "pm-with" is a group link' , ( ) => {
153
+ test ( 'only link containing "pm-with" is a group link' , ( ) => {
158
154
expect ( getLinkType ( new URL ( '/#narrow/stream/jest/topic/test' , realm ) , realm ) ) . toBe ( 'topic' ) ;
159
155
expect ( getLinkType ( new URL ( '/#narrow/pm-with/1,2-group' , realm ) , realm ) ) . toBe ( 'pm' ) ;
160
156
expect ( getLinkType ( new URL ( '/#narrow/pm-with/1,2-group/near/1' , realm ) , realm ) ) . toBe ( 'pm' ) ;
@@ -163,7 +159,7 @@ describe('getLinkType', () => {
163
159
) . toBe ( 'pm' ) ;
164
160
} ) ;
165
161
166
- test ( 'only in-app link containing "is" is a special link' , ( ) => {
162
+ test ( 'only link containing "is" is a special link' , ( ) => {
167
163
expect ( getLinkType ( new URL ( '/#narrow/stream/jest/topic/test' , realm ) , realm ) ) . toBe ( 'topic' ) ;
168
164
expect ( getLinkType ( new URL ( '/#narrow/is/private' , realm ) , realm ) ) . toBe ( 'special' ) ;
169
165
expect ( getLinkType ( new URL ( '/#narrow/is/starred' , realm ) , realm ) ) . toBe ( 'special' ) ;
0 commit comments