Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Comments

Tests for watch tasks#837

Merged
gauntface merged 4 commits intowsk2from
wsk2-watch-testing
Feb 22, 2016
Merged

Tests for watch tasks#837
gauntface merged 4 commits intowsk2from
wsk2-watch-testing

Conversation

@gauntface
Copy link

@surma thoughts on this? Still worth doing?


// Clean up before each test
beforeEach(done => rimraf(TEST_OUTPUT_PATH, done));
beforeEach(done => del(TEST_OUTPUT_PATH + '/**').then(() => done(), done));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is there .then(() => done(), done) instead of .then(done, done)?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm. Got it. done(something) is for errors, isn’t it?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup :(

@gauntface
Copy link
Author

@surma fixed the tests - sorry for the delay with that

@surma
Copy link
Contributor

surma commented Feb 22, 2016

@gauntface LGTM. I think we should include this, so merge at will.

gauntface pushed a commit that referenced this pull request Feb 22, 2016
@gauntface gauntface merged commit 98f97b7 into wsk2 Feb 22, 2016
@gauntface gauntface deleted the wsk2-watch-testing branch January 12, 2018 19:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants