-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[canvas] migrate tests away from karma (#73121)
Co-authored-by: spalger <spalger@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
- Loading branch information
1 parent
6631a29
commit d66cc35
Showing
23 changed files
with
311 additions
and
657 deletions.
There are no files selected for viewing
25 changes: 0 additions & 25 deletions
25
x-pack/plugins/canvas/public/components/loading/__tests__/loading.js
This file was deleted.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
x-pack/plugins/canvas/public/components/loading/loading.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
`); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
95 changes: 0 additions & 95 deletions
95
x-pack/plugins/canvas/public/lib/__tests__/find_expression_type.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.