Skip to content

Enable Flow on more test files #1806

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/subscription/__tests__/asyncIteratorReject-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @noflow
* @flow strict
*/

import { expect } from 'chai';
Expand Down Expand Up @@ -33,6 +33,7 @@ describe('asyncIteratorReject', () => {
const iter = asyncIteratorReject(error);

// Close iterator
// $FlowFixMe
expect(await iter.return()).to.deep.equal({ done: true, value: undefined });

expect(await iter.next()).to.deep.equal({ done: true, value: undefined });
Expand Down
3 changes: 2 additions & 1 deletion src/subscription/__tests__/eventEmitterAsyncIterator-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @noflow
* @flow strict
*/

import { expect } from 'chai';
Expand Down Expand Up @@ -49,6 +49,7 @@ describe('eventEmitterAsyncIterator', () => {
const i5 = iterator.next().then(x => x);

// Terminate emitter
// $FlowFixMe
await iterator.return();

// Publish is not caught after terminate
Expand Down
2 changes: 1 addition & 1 deletion src/subscription/__tests__/subscribe-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ describe('Subscription Publish Phase', () => {
}

expect(expectedError).to.be.instanceof(Error);
expect(expectedError.message).to.equal('test error');
expect(expectedError).to.have.property('message', 'test error');

const payload2 = await subscription.next();
expect(payload2).to.deep.equal({
Expand Down