mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
23 lines
502 B
TypeScript
23 lines
502 B
TypeScript
import React from "react"
|
|
import SvgIcon from "@material-ui/core/SvgIcon"
|
|
import { render } from "./../../test_helpers"
|
|
|
|
import * as Icons from "./index"
|
|
|
|
const getAllIcons = (): [string, typeof SvgIcon][] => {
|
|
let k: keyof typeof Icons
|
|
const ret: [string, typeof SvgIcon][] = []
|
|
for (k in Icons) {
|
|
ret.push([k, Icons[k]])
|
|
}
|
|
return ret
|
|
}
|
|
|
|
describe("Icons", () => {
|
|
const allIcons = getAllIcons()
|
|
|
|
it.each(allIcons)(`rendering icon %p`, (_name, Icon) => {
|
|
render(<Icon />)
|
|
})
|
|
})
|