Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
few final minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Seccafien committed Sep 26, 2019
1 parent e632742 commit ce89608
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ describe('CookieUniversalProvider', () => {
}

it('provides a universal cookie manager for the server', () => {
// Jest always has a document.cookie defined so mocking
// is needed to test the server implementation
hasDocumentCookie.mockImplementation(false);

const wrapper = mount(
<CookieUniversalProvider>
<MockApp />
Expand Down
3 changes: 0 additions & 3 deletions packages/react-cookie/src/tests/hooks.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,14 @@ describe('hooks', () => {

it('removes a cookie', async () => {
const setValue = 'bar';

const wrapper = await mount(
<MockComponent cookie="foo" setValue={setValue} />,
);

wrapper.find('button')!.trigger('onClick');

expect(wrapper).toContainReactText(setValue);

wrapper.find('button')!.trigger('onClick');

expect(wrapper).not.toContainReactText(setValue);
});
});
Expand Down

0 comments on commit ce89608

Please sign in to comment.