File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -141,16 +141,9 @@ export default class TestCase {
141
141
}
142
142
143
143
isThatMarkTargeted ( ) {
144
- return this . context . thatMark . get ( ) . every ( ( { selection : thatSelection } ) => {
145
- return Object . values ( this . marks ) . some ( ( targetedSelection ) => {
146
- return (
147
- thatSelection . end . character === targetedSelection . end . character &&
148
- thatSelection . end . line === targetedSelection . end . line &&
149
- thatSelection . start . character === targetedSelection . start . character &&
150
- thatSelection . start . line === targetedSelection . start . line
151
- ) ;
152
- } ) ;
153
- } ) ;
144
+ return this . targets . some (
145
+ ( target ) => target . type === "primitive" && target . mark . type === "that"
146
+ ) ;
154
147
}
155
148
156
149
static async getSnapshot (
@@ -177,9 +170,9 @@ export default class TestCase {
177
170
snapshot . clipboard = "" ;
178
171
}
179
172
180
- // if (this.initialState == null && !this.isThatMarkTargeted()) {
181
- // snapshot.thatMark = [];
182
- // }
173
+ if ( this . initialState == null && ! this . isThatMarkTargeted ( ) ) {
174
+ snapshot . thatMark = [ ] ;
175
+ }
183
176
184
177
if ( this . initialState == null ) {
185
178
this . initialState = snapshot ;
You can’t perform that action at this time.
0 commit comments