Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[canvas] migrate tests away from karma #73121

Merged
merged 4 commits into from
Jul 27, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

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