Skip to content
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

Add test for async functions #104

Closed
cjihrig opened this issue Jul 14, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@cjihrig
Copy link
Contributor

@cjihrig cjihrig commented Jul 14, 2017

This test works, but currently fails linting (the parser fails). Also have to deal with Node version issues.

it('validates correct type for async functions', (done) => {

    let exception = false;
    try {
        Code.expect(async function () {}).to.be.a.function();
    }
    catch (err) {
        exception = err;
    }

    Hoek.assert(!exception, exception);
    done();
});
@cjihrig cjihrig added the test label Sep 16, 2017
@cjihrig cjihrig self-assigned this Sep 16, 2017
@cjihrig cjihrig added this to the 5.0.0 milestone Sep 16, 2017
@cjihrig

This comment has been minimized.

Copy link
Contributor Author

@cjihrig cjihrig commented Sep 16, 2017

Adding this to the 5.0.0 milestone because lab has been updated.

@cjihrig cjihrig closed this in bb37cc5 Sep 16, 2017
@cjihrig

This comment has been minimized.

Copy link
Contributor Author

@cjihrig cjihrig commented Sep 16, 2017

Closed in bb37cc5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.