Skip to content

Commit

Permalink
Cover index.ts files
Browse files Browse the repository at this point in the history
- super basic, leaves out assertions to avoid brittleness
  • Loading branch information
cee-chen committed Nov 4, 2020
1 parent 48019ca commit 66425c8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

import { mockDependencies, MockRouter } from '../../__mocks__';

import { registerAppSearchRoutes } from './';

describe('registerAppSearchRoutes', () => {
it('runs without errors', () => {
const mockRouter = new MockRouter({} as any);
registerAppSearchRoutes({ ...mockDependencies, router: mockRouter.router });
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

import { mockDependencies, MockRouter } from '../../__mocks__';

import { registerWorkplaceSearchRoutes } from './';

describe('registerWorkplaceSearchRoutes', () => {
it('runs without errors', () => {
const mockRouter = new MockRouter({} as any);
registerWorkplaceSearchRoutes({ ...mockDependencies, router: mockRouter.router });
});
});

0 comments on commit 66425c8

Please sign in to comment.