Commit 00c8264f authored by Paul Slaughter's avatar Paul Slaughter

Jestify activities spec

Also add `jQuery` to global in `test_setup`.
This was needed because:
- `vendor/jquery.endless-scroll` depends on it.
- Adding it to `global` in the spec itself didn't work.
parent 5e88463d
/* eslint-disable no-unused-expressions, no-prototype-builtins, no-new, no-shadow */
import $ from 'jquery';
import 'vendor/jquery.endless-scroll';
import Activities from '~/activities';
import Pager from '~/pager';
......@@ -40,7 +39,7 @@ describe('Activities', () => {
beforeEach(() => {
loadFixtures(fixtureTemplate);
spyOn(Pager, 'init').and.stub();
jest.spyOn(Pager, 'init').mockImplementation(() => {});
new Activities();
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment