Skip to content

Commit

Permalink
Assert on something for space aware results in find_relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecote committed Jan 9, 2019
1 parent 062b72b commit e7c7735
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -99,7 +99,14 @@ export function findRelationshipsTestSuiteFactory(esArchiver: any, supertest: Su
const createExpectSpaceAwareResults = (spaceId = DEFAULT_SPACE_ID) => (resp: {
[key: string]: any;
}) => {
expect(resp.body).to.have.property('dashboard');
expect(resp.body).to.eql({
dashboard: [
{
id: `${getIdPrefix(spaceId)}be3733a0-9efe-11e7-acb3-3dab96693fab`,
title: 'Requests',
},
],
});
};

const makeFindRelationshipsTest = (describeFn: DescribeFn) => (
Expand Down

0 comments on commit e7c7735

Please sign in to comment.