github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/ui/dashboard/src/icons/heroIcons.test.ts (about) 1 import { icons } from "./heroIcons"; 2 3 describe("hero icons", () => { 4 test("unknown returns null", () => { 5 expect(icons["hjdfghskhgskfdjg"]).toEqual(undefined); 6 }); 7 8 test("existing icon not mapped", () => { 9 expect(icons["bell"]).not.toBeNull(); 10 }); 11 12 test("existing namespaced icon not mapped", () => { 13 expect(icons["heroicons-outline:bell"]).not.toBeNull(); 14 }); 15 16 test("migrated icon mapped", () => { 17 expect(icons["search"]).not.toBeNull(); 18 }); 19 20 test("prefixed migrated icon mapped", () => { 21 expect(icons["heroicons-solid:search"]).not.toBeNull(); 22 }); 23 });