Skip to content

Commit

Permalink
Fixing test name and adding comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-buttner committed Sep 3, 2020
1 parent e0a62b3 commit e97352c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('Resolver, initially no indices', () => {
});
});

it(`should no nodes`, async () => {
it(`should retrieve no process nodes when the indices was an empty array`, async () => {
await expect(
simulator.map(() => ({
processes: simulator.processNodeElements().length,
Expand All @@ -52,10 +52,11 @@ describe('Resolver, initially no indices', () => {

describe('Resolver, when indices are used', () => {
beforeEach(async () => {
// awesome_index is checked in the handleNoIndices function
simulator.indices = ['awesome_index'];
});
// Combining assertions here for performance. Unfortunately, Enzyme + jsdom + React is slow.
it(`should have 3 nodes, with the entityID's 'origin', 'firstChild', and 'secondChild'. 'origin' should be selected.`, async () => {
it(`should have 3 nodes, with the entityID's 'origin', 'firstChild', and 'secondChild'. 'origin' should be selected when the simulator has the right indices`, async () => {
await expect(
simulator.map(() => ({
selectedOriginCount: simulator.selectedProcessNode(entityIDs.origin).length,
Expand Down

0 comments on commit e97352c

Please sign in to comment.