@@ -114,7 +114,7 @@ describe('dOM Output: Actual Element Creation', () => {
114
114
div . appendChild ( fragment )
115
115
116
116
expect ( div . childNodes ) . toHaveLength ( 2 )
117
- expect ( div . childNodes [ 0 ] . textContent ) . toBe ( 'MITRE' )
117
+ expect ( div . childNodes [ 0 ] ! . textContent ) . toBe ( 'MITRE' )
118
118
119
119
const sup = div . childNodes [ 1 ] as HTMLElement
120
120
expect ( sup . tagName ) . toBe ( 'SPAN' ) // TM uses SPAN for positioning
@@ -133,7 +133,7 @@ describe('dOM Output: Actual Element Creation', () => {
133
133
div . appendChild ( fragment )
134
134
135
135
expect ( div . childNodes ) . toHaveLength ( 2 )
136
- expect ( div . childNodes [ 0 ] . textContent ) . toBe ( '1' )
136
+ expect ( div . childNodes [ 0 ] ! . textContent ) . toBe ( '1' )
137
137
138
138
const sup = div . childNodes [ 1 ] as HTMLElement
139
139
expect ( sup . tagName ) . toBe ( 'SUP' )
@@ -153,14 +153,14 @@ describe('dOM Output: Actual Element Creation', () => {
153
153
div . appendChild ( fragment )
154
154
155
155
expect ( div . childNodes ) . toHaveLength ( 3 )
156
- expect ( div . childNodes [ 0 ] . textContent ) . toBe ( 'H' )
156
+ expect ( div . childNodes [ 0 ] ! . textContent ) . toBe ( 'H' )
157
157
158
158
const sub = div . childNodes [ 1 ] as HTMLElement
159
159
expect ( sub . tagName ) . toBe ( 'SUB' )
160
160
expect ( sub . className ) . toBe ( 'ss-sub' )
161
161
expect ( sub . textContent ) . toBe ( '2' )
162
162
163
- expect ( div . childNodes [ 2 ] . textContent ) . toBe ( 'O' )
163
+ expect ( div . childNodes [ 2 ] ! . textContent ) . toBe ( 'O' )
164
164
} )
165
165
166
166
it ( 'should create fragment with mixed super and subscripts' , ( ) => {
@@ -201,8 +201,8 @@ describe('dOM Output: Actual Element Creation', () => {
201
201
// Should have text "MITRE" and trademark "™" as SPAN (hybrid approach)
202
202
const tmElements = div . querySelectorAll ( 'span.ss-tm' )
203
203
expect ( tmElements ) . toHaveLength ( 1 )
204
- expect ( tmElements [ 0 ] . className ) . toBe ( 'ss-sup ss-tm' )
205
- expect ( tmElements [ 0 ] . textContent ) . toBe ( '™' )
204
+ expect ( tmElements [ 0 ] ! . className ) . toBe ( 'ss-sup ss-tm' )
205
+ expect ( tmElements [ 0 ] ! . textContent ) . toBe ( '™' )
206
206
} )
207
207
208
208
it ( 'should process ordinal numbers correctly' , ( ) => {
@@ -214,8 +214,8 @@ describe('dOM Output: Actual Element Creation', () => {
214
214
// Should have "1" as text and "st" as superscript
215
215
const supElements = div . querySelectorAll ( 'sup.ss-sup' )
216
216
expect ( supElements ) . toHaveLength ( 1 )
217
- expect ( supElements [ 0 ] . className ) . toBe ( 'ss-sup ss-ordinal' )
218
- expect ( supElements [ 0 ] . textContent ) . toBe ( 'st' )
217
+ expect ( supElements [ 0 ] ! . className ) . toBe ( 'ss-sup ss-ordinal' )
218
+ expect ( supElements [ 0 ] ! . textContent ) . toBe ( 'st' )
219
219
} )
220
220
221
221
it ( 'should process chemical formulas correctly' , ( ) => {
@@ -227,7 +227,7 @@ describe('dOM Output: Actual Element Creation', () => {
227
227
// Should have H, subscript 2, and O
228
228
const subElements = div . querySelectorAll ( 'sub.ss-sub' )
229
229
expect ( subElements ) . toHaveLength ( 1 )
230
- expect ( subElements [ 0 ] . textContent ) . toBe ( '2' )
230
+ expect ( subElements [ 0 ] ! . textContent ) . toBe ( '2' )
231
231
} )
232
232
233
233
it ( 'should process math notation correctly' , ( ) => {
@@ -239,7 +239,7 @@ describe('dOM Output: Actual Element Creation', () => {
239
239
// Should have superscript 2
240
240
const supElements = div . querySelectorAll ( 'sup.ss-sup' )
241
241
expect ( supElements ) . toHaveLength ( 1 )
242
- expect ( supElements [ 0 ] . textContent ) . toBe ( '2' )
242
+ expect ( supElements [ 0 ] ! . textContent ) . toBe ( '2' )
243
243
} )
244
244
245
245
it ( 'should process copyright symbol correctly' , ( ) => {
0 commit comments