@@ -167,15 +167,15 @@ describe('jsonToGraphQL()', () => {
167
167
} as any ;
168
168
expect ( jsonToGraphQLQuery ( query , { pretty : true } ) ) . to . equal (
169
169
`query {
170
- Posts @client (where: {id: 10}, orderBy: ' flibble' ) {
170
+ Posts @client (where: {id: 10}, orderBy: " flibble" ) {
171
171
id
172
172
title
173
173
post_date
174
174
}
175
175
}` ) ;
176
176
} ) ;
177
177
178
- it ( 'Converts a complex query with directives with no arguments' , ( ) => {
178
+ it ( 'converts a complex query with directives with no arguments' , ( ) => {
179
179
const query = {
180
180
query : {
181
181
diet : {
@@ -215,8 +215,8 @@ describe('jsonToGraphQL()', () => {
215
215
} ) ;
216
216
217
217
// TODO: Need this test still? How to handle variables unless $ declared explicitly?
218
- // it('Converts a JavaScript object into a valid query, including single directives ' +
219
- // 'with args, so long as any variables used are enclosed in a string with "$" included. ', () => {
218
+ // it('converts a JavaScript object into a valid query, including single directives ' +
219
+ // 'with args, so long as any variables used are enclosed in a string with "$" included', () => {
220
220
// interface ILooseObject { [key: string]: any; }
221
221
// let input: ILooseObject = {
222
222
// someOtherAbritraryKey: {
@@ -236,12 +236,12 @@ describe('jsonToGraphQL()', () => {
236
236
// });
237
237
238
238
// TODO
239
- // it('Converts a JavaScript object into a valid query, including *multiple* directives ' +
240
- // 'with args, so long as any variables used are enclosed in a string with "$" included. ', () => {
239
+ // it('converts a JavaScript object into a valid query, including *multiple* directives ' +
240
+ // 'with args, so long as any variables used are enclosed in a string with "$" included', () => {
241
241
// });
242
242
243
243
// TODO
244
- // it('Creates a query, stripping/ignoring certain, specified keys. ', () => {
244
+ // it('creates a query, stripping/ignoring certain, specified keys', () => {
245
245
// // Example usage: jsonToGraphqlQuery(preInput, { keysToStrip: ['__typename'] });
246
246
// });
247
247
0 commit comments