Remove unused code
This commit is contained in:
parent
2365d24c5c
commit
68b2c94849
|
|
@ -75,39 +75,3 @@ describe('Content Blocks', () => {
|
|||
cy.getByDataCy('submission-textarea').should('not.be.visible');
|
||||
});
|
||||
});
|
||||
/*
|
||||
cy.task('getSchema').then(schemaString => {
|
||||
cy.intercept('POST', '/api/graphql', (req) => {
|
||||
// if (hasOperationName('MeQuery')) {
|
||||
// graphql()
|
||||
const schema = makeExecutableSchema({
|
||||
typeDefs: schemaString,
|
||||
});
|
||||
const preserveResolvers = true;
|
||||
const mocks = {
|
||||
...defaultMocks,
|
||||
module: {
|
||||
title: 'I am a custom Title!'
|
||||
}
|
||||
};
|
||||
const schemaWithMocks = addMocksToSchema({
|
||||
schema,
|
||||
preserveResolvers,
|
||||
mocks,
|
||||
});
|
||||
|
||||
const {query} = req.body;
|
||||
console.log(req.body);
|
||||
|
||||
graphql({
|
||||
schema: schemaWithMocks,
|
||||
source: query,
|
||||
}).then(result => {
|
||||
console.log(result);
|
||||
req.reply(result);
|
||||
});
|
||||
|
||||
// }
|
||||
});
|
||||
});
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue