Skip to content

Commit d29e7aa

Browse files
Jorge Gonzalezjmcdo29
authored andcommitted
test: removes Array.at to be comaptible w/ node <16
1 parent 58ae380 commit d29e7aa

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

test/large-app/app.e2e-spec.ts

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,16 @@ SpelunkerSuite('Should allow the SpelunkerModule to graph', ({ app }) => {
5353
);
5454
});
5555

56-
SpelunkerSuite('Should handle a module circular dependency', ({ app }) => {
57-
const tree = SpelunkerModule.explore(app);
58-
tree.at(-1)?.imports.push('AppModule');
59-
const root = SpelunkerModule.graph(tree);
60-
const edges = SpelunkerModule.findGraphEdges(root);
61-
equal(
62-
edges.map((e) => `${e.from.module.name}-->${e.to.module.name}`),
63-
cyclicGraphEdgesOutput,
64-
);
65-
});
56+
SpelunkerSuite(
57+
'Should handle a module circular dependency when finding graph edges',
58+
({ app }) => {
59+
const tree = SpelunkerModule.explore(app);
60+
tree.slice(-1)[0].imports.push('AppModule');
61+
const root = SpelunkerModule.graph(tree);
62+
const edges = SpelunkerModule.findGraphEdges(root);
63+
equal(
64+
edges.map((e) => `${e.from.module.name}-->${e.to.module.name}`),
65+
cyclicGraphEdgesOutput,
66+
);
67+
},
68+
);

0 commit comments

Comments
 (0)