Skip to content

Commit

Permalink
fix circular dependency and api integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Oct 2, 2021
1 parent eb3c090 commit 803e818
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export default function ({ getService }: FtrProviderContext) {
const { body } = await supertest.get('/api/deprecations/');

const { deprecations } = body as DeprecationsGetResponse;
const dataPluginDeprecations = deprecations.filter(({ domainId }) => domainId === 'data');
const dataPluginDeprecations = deprecations.filter(
({ domainId }) => domainId === 'dataViews'
);

expect(dataPluginDeprecations.length).to.be(0);
});
Expand Down Expand Up @@ -60,7 +62,7 @@ export default function ({ getService }: FtrProviderContext) {
const { body } = await supertest.get('/api/deprecations/');
const { deprecations } = body as DeprecationsGetResponse;
const dataPluginDeprecations = deprecations.filter(
({ domainId }) => domainId === 'data_views'
({ domainId }) => domainId === 'dataViews'
);

expect(dataPluginDeprecations.length).to.be(1);
Expand Down

0 comments on commit 803e818

Please sign in to comment.