Skip to content

Commit

Permalink
lists-test: simplify generator test (#2756)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Aug 25, 2020
1 parent abcb3b3 commit fe3040f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/execution/__tests__/lists-test.js
Expand Up @@ -25,12 +25,11 @@ describe('Execute: Accepts any iterable as list value', () => {
});

it('Accepts an Generator function as a List value', () => {
function* yieldItems() {
function* listField() {
yield 'one';
yield 2;
yield true;
}
const listField = yieldItems();

expect(complete({ listField })).to.deep.equal({
data: { listField: ['one', '2', 'true'] },
Expand Down

0 comments on commit fe3040f

Please sign in to comment.