Skip to content

Instantly share code, notes, and snippets.

@jasongaare
Last active June 6, 2017 21:58
Show Gist options
  • Save jasongaare/f2be446b6fbb77e54e3dab5725891331 to your computer and use it in GitHub Desktop.
Save jasongaare/f2be446b6fbb77e54e3dab5725891331 to your computer and use it in GitHub Desktop.
import React from 'react';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import FilterBar from 'components/filter/FilterBar';
const sampleFilters = { ids: [1, 2] };
describe('Testing FilterBar', () => {
it('removeFilters removes filters as expected', () => {
const onFiltersChangeSpy = sinon.spy();
const render = shallow(
<FilterBar filters={sampleFilters} onFiltersChange={onFiltersChangeSpy} />
);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment