Skip to content

Commit

Permalink
remove non spec compliant test
Browse files Browse the repository at this point in the history
  • Loading branch information
leebyron committed Apr 5, 2016
1 parent cf5b234 commit 07e627a
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions src/execution/__tests__/directives-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,51 +268,6 @@ describe('Execute: handles directives', () => {
});
});

describe('works on fragment', () => {
it('if false omits fragment', async () => {
const q = `
query Q {
a
...Frag
}
fragment Frag on TestType @include(if: false) {
b
}
`;
return expect(await executeTestQuery(q)).to.deep.equal({
data: { a: 'a' }
});
});
it('if true includes fragment', async () => {
const q = `
query Q {
a
...Frag
}
fragment Frag on TestType @include(if: true) {
b
}
`;
return expect(await executeTestQuery(q)).to.deep.equal({
data: { a: 'a', b: 'b' }
});
});
it('unless false includes fragment', async () => {
const q = `
query Q {
a
...Frag
}
fragment Frag on TestType @skip(if: false) {
b
}
`;
return expect(await executeTestQuery(q)).to.deep.equal({
data: { a: 'a', b: 'b' }
});
});
});

describe('works with skip and include directives', () => {
it('include and no skip', async () => {
return expect(
Expand Down

0 comments on commit 07e627a

Please sign in to comment.