overleaf/services/web/frontend/stories/fixtures/context.js
Eric Mc Sween 94e65f16a8 Merge pull request #3588 from overleaf/msm-fix-outline-chat-stories
Fixed Chat and Outline stories

GitOrigin-RevId: ff0b0d8c733e7f3fc9a355ecc81c628d15497059
2021-01-22 03:05:05 +00:00

17 lines
319 B
JavaScript

import sinon from 'sinon'
export function setupContext() {
window.project_id = '1234'
let $scope = {}
if (window._ide) {
$scope = { ...window._ide.$scope, project: {} }
}
window._ide = {
...window._ide,
$scope,
socket: {
on: sinon.stub(),
removeListener: sinon.stub()
}
}
}