@@ -10,7 +10,7 @@ import {
10
10
} from "../mocks/object-graph.mock" ;
11
11
12
12
describe ( "length" , ( ) => {
13
- test ( "get the length of the object graph" , ( ) => {
13
+ test ( "gets the length of the object graph" , ( ) => {
14
14
const shirtToAdd : Shirt = { sku : "9" , color : "orange" , size : "small" } ;
15
15
const shirtsObjectGraph = new ObjectGraph < Shirt > ( shirtsMock , ( shirt ) => shirt . sku ) ;
16
16
@@ -23,7 +23,7 @@ describe("length", () => {
23
23
} ) ;
24
24
25
25
describe ( "keys()" , ( ) => {
26
- test ( "get an iterator object that contains the keys of the object graph" , ( ) => {
26
+ test ( "gets an iterator object that contains the keys of the object graph" , ( ) => {
27
27
const shirtsObjectGraph = new ObjectGraph < Shirt > ( shirtsMock , ( shirt ) => shirt . sku ) ;
28
28
29
29
const shirtsObjectGraphKeysIterator = shirtsObjectGraph . keys ( ) ;
@@ -35,7 +35,7 @@ describe("keys()", () => {
35
35
} ) ;
36
36
37
37
describe ( "values()" , ( ) => {
38
- test ( "get an iterator object that contains the values of the object graph" , ( ) => {
38
+ test ( "gets an iterator object that contains the values of the object graph" , ( ) => {
39
39
const shirtsObjectGraph = new ObjectGraph < Shirt > ( shirtsMock , ( shirt ) => shirt . sku ) ;
40
40
41
41
const shirtsObjectGraphValuesIterator = shirtsObjectGraph . values ( ) ;
@@ -58,7 +58,7 @@ describe("get()", () => {
58
58
expect ( returnedNode ) . toBeUndefined ( ) ;
59
59
} ) ;
60
60
61
- test ( "get a node of the object graph" , ( ) => {
61
+ test ( "gets a node of the object graph" , ( ) => {
62
62
const shirtsObjectGraph = new ObjectGraph < Shirt > ( shirtsMock , ( shirt ) => shirt . sku ) ;
63
63
64
64
const returnedNode = shirtsObjectGraph . get ( shirtsMock [ 0 ] . sku ) ;
@@ -69,7 +69,7 @@ describe("get()", () => {
69
69
} ) ;
70
70
71
71
describe ( "copy()" , ( ) => {
72
- test ( "get a copy of the original object graph" , ( ) => {
72
+ test ( "gets a copy of the original object graph" , ( ) => {
73
73
const shirtsObjectGraph = new ObjectGraph < Shirt > ( shirtsMock , ( shirt ) => shirt . sku ) ;
74
74
75
75
const copiedShirtsObjectGraph = shirtsObjectGraph . copy ( ) ;
@@ -98,7 +98,7 @@ describe("add()", () => {
98
98
} ) ;
99
99
100
100
describe ( "toAdded()" , ( ) => {
101
- test ( "get a copy of the original object graph with a received node added" , ( ) => {
101
+ test ( "gets a copy of the original object graph with a received node added" , ( ) => {
102
102
const consoleErrorSpy = vi . spyOn ( console , "error" ) ;
103
103
const shirtsObjectGraph = new ObjectGraph < Shirt > ( [ ] , ( shirt ) => shirt . sku ) ;
104
104
@@ -142,7 +142,7 @@ describe("update()", () => {
142
142
} ) ;
143
143
144
144
describe ( "toUpdated()" , ( ) => {
145
- test ( "get a copy of the original object graph with a received node updated" , ( ) => {
145
+ test ( "gets a copy of the original object graph with a received node updated" , ( ) => {
146
146
const shirtToUpdate : Shirt = { sku : "1" , color : "red" , size : "large" } ;
147
147
const shirtsObjectGraph = new ObjectGraph < Shirt > ( shirtsMock , ( shirt ) => shirt . sku ) ;
148
148
@@ -185,7 +185,7 @@ describe("remove()", () => {
185
185
} ) ;
186
186
187
187
describe ( "toRemoved()" , ( ) => {
188
- test ( "get a copy of the original object graph with a received node removed" , ( ) => {
188
+ test ( "gets a copy of the original object graph with a received node removed" , ( ) => {
189
189
const consoleErrorSpy = vi . spyOn ( console , "error" ) ;
190
190
const shirtsObjectGraph = new ObjectGraph < Shirt > ( shirtsMock , ( shirt ) => shirt . sku ) ;
191
191
@@ -207,7 +207,7 @@ describe("toRemoved()", () => {
207
207
} ) ;
208
208
209
209
describe ( "valuesOf()" , ( ) => {
210
- test ( "get all values of the provided property" , ( ) => {
210
+ test ( "gets all values of the provided property" , ( ) => {
211
211
const shirtsObjectGraph = new ObjectGraph < Shirt > ( shirtsMock , ( shirt ) => shirt . sku ) ;
212
212
213
213
const sizePropertyValues = shirtsObjectGraph . valuesOf ( "size" ) ;
@@ -219,7 +219,7 @@ describe("valuesOf()", () => {
219
219
} ) ;
220
220
221
221
describe ( "match()" , ( ) => {
222
- test ( "get all nodes that match with the provided shape" , ( ) => {
222
+ test ( "gets all nodes that match with the provided shape" , ( ) => {
223
223
const colorsToMatch : Color [ ] = [ "red" , "blue" ] ;
224
224
const sizesToMatch : Size [ ] = [ "small" , "medium" ] ;
225
225
const shirtsObjectGraph = new ObjectGraph < Shirt > ( shirtsMock , ( shirt ) => shirt . sku ) ;
0 commit comments