/
githubmirror
/
alluxio
Обзор
Документация
Войти
/
githubmirror
/
alluxio
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
webui/common/src/components/SlackButton/SlackButton.test.tsx
36 строк
1 KB
Jason Tieu
Add button for community Slack channel in Web UI
22 май 2020, 20:36
Не верифицирован
22 май 2020, 20:36
8d2a475
Код
Авторство
О чём код?
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied, as more fully set forth in the License. * * See the NOTICE file distributed with this work for information regarding copyright ownership. */ import { configure, shallow, ShallowWrapper } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; import React from 'react'; import { SlackButton } from './SlackButton'; configure({ adapter: new Adapter() }); describe('SlackButton', () => { describe('Shallow component', () => { let shallowWrapper: ShallowWrapper; beforeAll(() => { shallowWrapper = shallow(<SlackButton />); }); it('Renders without crashing', () => { expect(shallowWrapper.length).toEqual(1); }); it('Matches snapshot', () => { expect(shallowWrapper).toMatchSnapshot(); }); }); });