davidhu2000 / react-spinners

A collection of loading spinner components for react
https://www.davidhu.io/react-spinners
MIT License
3.05k stars 264 forks source link

Refactor common specs to a helper #366

Closed davidhu2000 closed 3 years ago

davidhu2000 commented 3 years ago
  it("should match snapshot", () => {
  it("should contain default props if no props are passed", () => {
  it("should render null if loading prop is set as false", () => {

these 4 tests are now moved to a commonSpec file and runs for all loaders