Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
smitt04 committed Feb 11, 2020
1 parent 7dd6237 commit f381ccc
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/utilities/__tests__/buildASTSchema-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -799,30 +799,6 @@ describe('Schema Builder', () => {
`);

expect(printAllASTNodes(someScalar)).to.equal(scalarSDL);
expect(rootFields.field2.isDeprecated).to.equal(true);
expect(rootFields.field2.deprecationReason).to.equal('Because I said so');

const field3OldArg = rootFields.field3.args[0];
expect(field3OldArg.isDeprecated).to.equal(true);
expect(field3OldArg.deprecationReason).to.equal('No longer supported');

const field4OldArg = rootFields.field4.args[0];
expect(field4OldArg.isDeprecated).to.equal(true);
expect(field4OldArg.deprecationReason).to.equal('why not?');

const myInput = schema.getType('MyInput');
const inputFields = myInput.getFields();

const newInput = inputFields.newInput;
expect(newInput.isDeprecated).to.equal(false);

const oldInput = inputFields.oldInput;
expect(oldInput.isDeprecated).to.equal(true);
expect(oldInput.deprecationReason).to.equal('No longer supported');

const otherInput = inputFields.otherInput;
expect(otherInput.isDeprecated).to.equal(true);
expect(otherInput.deprecationReason).to.equal('Use newInput');
});

it('Correctly extend object type', () => {
Expand Down

0 comments on commit f381ccc

Please sign in to comment.