homehub/packages/homehub_app/tests/main/components/AppLoader.spec.js

19 lines
452 B
JavaScript
Raw Permalink Normal View History

2021-08-26 10:33:15 +00:00
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);
});
});
});