Skip to content

Commit

Permalink
Removing todo and fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-buttner committed Sep 10, 2020
1 parent f2909b1 commit b14cb3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,14 @@ describe('data generator', () => {
tree[value.parent_entity_id].children.push(value);
}
}

const entityID = entityIDSafeVersion(events[0]);
if (!entityID) {
throw new Error('entity id was invalid');
}

// The root node must be first in the array or this fails
return tree[entityIDSafeVersion(events[0]) ?? ''];
return tree[entityID];
}

function countResolverEvents(rootNode: Node, generations: number): number {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ describe('Generated documents', () => {
generator = new EndpointDocGenerator('seed');
});

// TODO what should I do about the cast? We can create a new safe descriptive name but
// the front end won't use that until the rest of it is converted
describe('Event descriptive names', () => {
it('returns the right name for a registry event', () => {
const extensions = { registry: { key: `HKLM/Windows/Software/abc` } };
Expand Down

0 comments on commit b14cb3b

Please sign in to comment.