Skip to content

Commit

Permalink
Support export for SO with circular refs (elastic#81582)
Browse files Browse the repository at this point in the history
* support export for SO with circular refs

* add a test for export to space

* update test case names

* add test with complex deps tree
  • Loading branch information
mshustov committed Oct 28, 2020
1 parent 1bfa312 commit daa1782
Show file tree
Hide file tree
Showing 10 changed files with 506 additions and 165 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('getObjectReferencesToFetch()', () => {
`);
});

test(`doesn't deal with circular dependencies`, () => {
test('does not fail on circular dependencies', () => {
const map = new Map<string, SavedObject>();
map.set('index-pattern:1', {
id: '1',
Expand Down Expand Up @@ -527,7 +527,7 @@ describe('injectNestedDependencies', () => {
`);
});

test(`doesn't deal with circular dependencies`, async () => {
test('does not fail on circular dependencies', async () => {
const savedObjects = [
{
id: '2',
Expand Down
Loading

0 comments on commit daa1782

Please sign in to comment.