homehub/packages/homehub_app/tests/main/components/AppLoader.spec.js
2021-08-26 12:33:15 +02:00

19 lines
452 B
JavaScript

import {shallow} from 'enzyme';
import React from 'react';
import * as AppLoader from 'src/main/components/AppLoader';
describe('src/main/components/AppLoader', () => {
describe('AppLoader', () => {
it('allows passing an arbitrary class name', () => {
// Given
const component = shallow(
<AppLoader.AppLoader className="test" />
);
// Then
expect(component.hasClass('test')).toBe(true);
});
});
});