mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
efb35b537a
* add prettier and have it format all js code except website: : * trying running prettier check in CI * fix runs on in CI * change CI job name * fix prettier erros and fix CI
20 lines
617 B
JavaScript
20 lines
617 B
JavaScript
import React from "react";
|
|
import { mount } from "enzyme";
|
|
|
|
import fleetAvatar from "../../../../assets/images/fleet-avatar-24x24@2x.png";
|
|
import OrgLogoIcon from "./OrgLogoIcon";
|
|
|
|
describe("OrgLogoIcon - component", () => {
|
|
it("renders the Kolide Logo by default", () => {
|
|
const component = mount(<OrgLogoIcon />);
|
|
|
|
expect(component.state("imageSrc")).toEqual(fleetAvatar);
|
|
});
|
|
|
|
it("renders the image source when it is valid", () => {
|
|
const component = mount(<OrgLogoIcon src="/assets/images/avatar.svg" />);
|
|
|
|
expect(component.state("imageSrc")).toEqual("/assets/images/avatar.svg");
|
|
});
|
|
});
|