Skip to content

Commit

Permalink
fix broken tests by including mocked Range implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
asiandrummer committed Aug 1, 2016
1 parent 6f382b2 commit 010d470
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/__tests__/GraphiQL-test.js
Expand Up @@ -13,6 +13,17 @@ import { renderIntoDocument } from 'react-addons-test-utils';

import { GraphiQL } from '../GraphiQL';

document.createRange = () => ({
setEnd() {},
setStart() {},
getBoundingClientRect() {
return { right: 0 };
},
getClientRects() {
return { right: 0 };
}
});

const mockStorage = (function () {
let store = {};
return {
Expand Down

0 comments on commit 010d470

Please sign in to comment.