Skip to content

Commit af4e13d

Browse files
committed
fix unit test
1 parent 7d984b9 commit af4e13d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Run `ng build ngx-annotate-text` to build the project. The build artifacts will
133133
134134
### Running linting tools
135135
136-
Run `ng lint ngx-annotate-text ` to execute TSLint.
136+
Run `ng lint ngx-annotate-text ` to execute ESLint.
137137
138138
### Running unit tests
139139

projects/ngx-annotate-text/src/lib/components/ngx-annotate-text/ngx-annotate-text.component.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,11 @@ describe('NgxAnnotateTextComponent', () => {
281281
it('should return true if the selection is part of an existing annotation', () => {
282282
const selection: ISelection = {
283283
startIndex: 6,
284-
endIndex: 12,
284+
endIndex: 8,
285285
};
286286

287287
component.annotations = [
288-
new Annotation(4, 8, 'Adjective', 'orange'),
288+
new Annotation(4, 10, 'Adjective', 'orange'),
289289
];
290290

291291
expect(component.isOverlappingWithExistingAnnotations(selection)).toBeTrue();
@@ -297,12 +297,12 @@ describe('NgxAnnotateTextComponent', () => {
297297
*/
298298
it('should return true if the selection is part of an existing annotation', () => {
299299
const selection: ISelection = {
300-
startIndex: 6,
301-
endIndex: 12,
300+
startIndex: 4,
301+
endIndex: 10,
302302
};
303303

304304
component.annotations = [
305-
new Annotation(4, 8, 'Adjective', 'orange'),
305+
new Annotation(6, 8, 'Adjective', 'orange'),
306306
];
307307

308308
expect(component.isOverlappingWithExistingAnnotations(selection)).toBeTrue();

0 commit comments

Comments
 (0)