Skip to content

Commit b8ff555

Browse files
authored
test: adjust the name of some tests (#61)
1 parent 3ed8ba8 commit b8ff555

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tests/object-graph.test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
} from "../mocks/object-graph.mock";
1111

1212
describe("length", () => {
13-
test("get the length of the object graph", () => {
13+
test("gets the length of the object graph", () => {
1414
const shirtToAdd: Shirt = { sku: "9", color: "orange", size: "small" };
1515
const shirtsObjectGraph = new ObjectGraph<Shirt>(shirtsMock, (shirt) => shirt.sku);
1616

@@ -23,7 +23,7 @@ describe("length", () => {
2323
});
2424

2525
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", () => {
2727
const shirtsObjectGraph = new ObjectGraph<Shirt>(shirtsMock, (shirt) => shirt.sku);
2828

2929
const shirtsObjectGraphKeysIterator = shirtsObjectGraph.keys();
@@ -35,7 +35,7 @@ describe("keys()", () => {
3535
});
3636

3737
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", () => {
3939
const shirtsObjectGraph = new ObjectGraph<Shirt>(shirtsMock, (shirt) => shirt.sku);
4040

4141
const shirtsObjectGraphValuesIterator = shirtsObjectGraph.values();
@@ -58,7 +58,7 @@ describe("get()", () => {
5858
expect(returnedNode).toBeUndefined();
5959
});
6060

61-
test("get a node of the object graph", () => {
61+
test("gets a node of the object graph", () => {
6262
const shirtsObjectGraph = new ObjectGraph<Shirt>(shirtsMock, (shirt) => shirt.sku);
6363

6464
const returnedNode = shirtsObjectGraph.get(shirtsMock[0].sku);
@@ -69,7 +69,7 @@ describe("get()", () => {
6969
});
7070

7171
describe("copy()", () => {
72-
test("get a copy of the original object graph", () => {
72+
test("gets a copy of the original object graph", () => {
7373
const shirtsObjectGraph = new ObjectGraph<Shirt>(shirtsMock, (shirt) => shirt.sku);
7474

7575
const copiedShirtsObjectGraph = shirtsObjectGraph.copy();
@@ -98,7 +98,7 @@ describe("add()", () => {
9898
});
9999

100100
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", () => {
102102
const consoleErrorSpy = vi.spyOn(console, "error");
103103
const shirtsObjectGraph = new ObjectGraph<Shirt>([], (shirt) => shirt.sku);
104104

@@ -142,7 +142,7 @@ describe("update()", () => {
142142
});
143143

144144
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", () => {
146146
const shirtToUpdate: Shirt = { sku: "1", color: "red", size: "large" };
147147
const shirtsObjectGraph = new ObjectGraph<Shirt>(shirtsMock, (shirt) => shirt.sku);
148148

@@ -185,7 +185,7 @@ describe("remove()", () => {
185185
});
186186

187187
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", () => {
189189
const consoleErrorSpy = vi.spyOn(console, "error");
190190
const shirtsObjectGraph = new ObjectGraph<Shirt>(shirtsMock, (shirt) => shirt.sku);
191191

@@ -207,7 +207,7 @@ describe("toRemoved()", () => {
207207
});
208208

209209
describe("valuesOf()", () => {
210-
test("get all values of the provided property", () => {
210+
test("gets all values of the provided property", () => {
211211
const shirtsObjectGraph = new ObjectGraph<Shirt>(shirtsMock, (shirt) => shirt.sku);
212212

213213
const sizePropertyValues = shirtsObjectGraph.valuesOf("size");
@@ -219,7 +219,7 @@ describe("valuesOf()", () => {
219219
});
220220

221221
describe("match()", () => {
222-
test("get all nodes that match with the provided shape", () => {
222+
test("gets all nodes that match with the provided shape", () => {
223223
const colorsToMatch: Color[] = ["red", "blue"];
224224
const sizesToMatch: Size[] = ["small", "medium"];
225225
const shirtsObjectGraph = new ObjectGraph<Shirt>(shirtsMock, (shirt) => shirt.sku);

0 commit comments

Comments
 (0)