@@ -18,8 +18,6 @@ import SyntaxToken
18
18
import LinkableToken
19
19
from 'docc-render/components/DocumentationTopic/PrimaryContent/DeclarationToken/LinkableToken.vue' ;
20
20
import WordBreak from 'docc-render/components/WordBreak.vue' ;
21
- import Highlighted
22
- from 'docc-render/components/DocumentationTopic/PrimaryContent/DeclarationToken/Highlighted.vue' ;
23
21
24
22
const { TokenKind } = DeclarationToken . constants ;
25
23
@@ -60,7 +58,6 @@ describe('DeclarationToken', () => {
60
58
otherKinds . delete ( TokenKind . typeIdentifier ) ;
61
59
otherKinds . delete ( TokenKind . removed ) ;
62
60
otherKinds . delete ( TokenKind . added ) ;
63
- otherKinds . delete ( TokenKind . highlightDiff ) ;
64
61
65
62
otherKinds . forEach ( ( kind ) => {
66
63
const propsData = { kind, text : 'foo' } ;
@@ -128,29 +125,4 @@ describe('DeclarationToken', () => {
128
125
expect ( link . text ( ) ) . toBe ( propsData . text ) ;
129
126
expect ( link . classes ( ) ) . toContain ( 'attribute-link' ) ;
130
127
} ) ;
131
-
132
- it ( 'renders a `Highlighted` for `highlightDiff` tokens' , ( ) => {
133
- const stubs = { RawText } ;
134
- const propsData = {
135
- kind : TokenKind . highlightDiff ,
136
- tokens : [
137
- {
138
- kind : TokenKind . text ,
139
- text : 'foo' ,
140
- } ,
141
- {
142
- kind : TokenKind . text ,
143
- text : 'bar' ,
144
- } ,
145
- ] ,
146
- } ;
147
- const wrapper = mountToken ( { propsData, stubs } ) ;
148
- const highlighted = wrapper . find ( Highlighted ) ;
149
- expect ( highlighted . exists ( ) ) . toBe ( true ) ;
150
-
151
- const textTokens = highlighted . findAll ( RawText ) ;
152
- expect ( textTokens . length ) . toBe ( propsData . tokens . length ) ;
153
- expect ( textTokens . at ( 0 ) . props ( 'text' ) ) . toBe ( propsData . tokens [ 0 ] . text ) ;
154
- expect ( textTokens . at ( 1 ) . props ( 'text' ) ) . toBe ( propsData . tokens [ 1 ] . text ) ;
155
- } ) ;
156
128
} ) ;
0 commit comments