Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mbondyra committed Sep 8, 2021
1 parent 04d2f49 commit 7b0a74d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions x-pack/plugins/graph/server/saved_objects/migrations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,4 +201,28 @@ describe('graph-workspace', () => {
expect(migratedDoc).toBe(doc);
});
});
describe('8.0.0', () => {
const migration = graphMigrations['8.0.0'];
test('no op migration', () => {
const doc = {
id: '1',
type: 'graph-workspace',
attributes: {
wsState: JSON.stringify(
JSON.stringify({ foo: true, indexPatternRefName: 'indexPattern_0' })
),
bar: true,
},
references: [
{
id: 'pattern*',
name: 'indexPattern_0',
type: 'index-pattern',
},
],
};
const migratedDoc = migration(doc);
expect(migratedDoc).toBe(doc);
});
});
});

0 comments on commit 7b0a74d

Please sign in to comment.