added test for loading animation in Previews

This commit is contained in:
Lukas Heiligenbrunner 2020-06-18 22:08:26 +02:00
parent 37e5a1a51e
commit 63284da11e

View File

@ -56,6 +56,13 @@ describe('<Preview/>', function () {
});
});
it('spinner loads correctly', function () {
const wrapper = shallow(<Preview/>);
// expect load animation to be visible
expect(wrapper.find(".loadAnimation")).toHaveLength(1);
});
});
describe('<TagPreview/>', function () {