Skip to content

Commit

Permalink
[canvas] migrate tests away from karma (#73121)
Browse files Browse the repository at this point in the history
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 27, 2020
1 parent 6631a29 commit d66cc35
Show file tree
Hide file tree
Showing 23 changed files with 311 additions and 657 deletions.

This file was deleted.

36 changes: 36 additions & 0 deletions x-pack/plugins/canvas/public/components/loading/loading.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* 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 React from 'react';
import { shallow } from 'enzyme';
import { Loading } from './loading';

describe('<Loading />', () => {
it('uses EuiIcon by default', () => {
expect(shallow(<Loading />)).toMatchInlineSnapshot(`
<div
className="canvasLoading"
>
<EuiIcon
color="ghost"
type="clock"
/>
</div>
`);
});

it('uses EuiLoadingSpinner when animating', () => {
expect(shallow(<Loading animated />)).toMatchInlineSnapshot(`
<div
className="canvasLoading"
>
<EuiLoadingSpinner
size="m"
/>
</div>
`);
});
});
28 changes: 0 additions & 28 deletions x-pack/plugins/canvas/public/functions/__tests__/asset.js

This file was deleted.

95 changes: 0 additions & 95 deletions x-pack/plugins/canvas/public/lib/__tests__/find_expression_type.js

This file was deleted.

Loading

0 comments on commit d66cc35

Please sign in to comment.