import FaveButton from "components/ObsDetails/FaveButton";
import React from "react";
import factory from "tests/factory";
import { renderComponent } from "tests/helpers/render";
describe( "FaveButton", () => {
it( "should survive no currentUser", ( ) => {
expect(
( ) => renderComponent(
,
),
).not.toThrow( );
} );
it( "should survive no currentUser for an observation w/ existing votes", ( ) => {
const observation = factory( "RemoteObservation", {
votes: [factory( "RemoteVote" )],
} );
expect(
( ) => renderComponent(
,
),
).not.toThrow( );
} );
} );