Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Carlino committed Oct 10, 2018
1 parent ae2acbc commit 1d01641
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/TinyMCE_ssembed.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/dist/js/TinyMCE_sslink-file.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions client/src/boot/registerQueries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Injector from 'lib/Injector';
import { fileInterface, file, folder } from 'lib/fileFragments';
import readFilesQuery from 'state/files/readFilesQuery';

const registerQueries = () => {
Injector.query.registerFragment('FileInterfaceFields', fileInterface);
Injector.query.registerFragment('FileFields', file);
Expand Down
9 changes: 3 additions & 6 deletions client/src/state/files/readFilesQuery.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { graphql } from 'react-apollo';
import gql from 'graphql-tag';
import { fileInterface, file as fileFragment, folder as folderFragment } from 'lib/fileFragments';
import { hasFilters } from 'components/Search/Search';
import { graphqlTemplates} from 'lib/Injector';
import { graphqlTemplates } from 'lib/Injector';

const apolloConfig = {
options({ sectionConfig, folderId, fileId, query: params }) {
Expand Down Expand Up @@ -106,7 +103,7 @@ const query = {
sortBy: '[ChildrenSortInputType]',
},
args: {
'root': {
root: {
filter: 'rootFilter'
},
'root/edges/node/...on Folder/children': {
Expand Down Expand Up @@ -151,4 +148,4 @@ const query = {
],
],
};
export default query;
export default query;
3 changes: 2 additions & 1 deletion client/src/state/files/tests/readFilesQuery-test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/* global jest, describe, it, pit, expect, beforeEach, jasmine */

import { config } from '../readFilesQuery';
import query from '../readFilesQuery';

describe('readFilesQuery', () => {
const config = query.apolloConfig;
let graphqlData = null;
let child1 = null;
let child2 = null;
Expand Down

0 comments on commit 1d01641

Please sign in to comment.