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

Use more modern streams2 streaming api #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

leetreveil
Copy link
Owner

No description provided.

@@ -81,7 +82,7 @@ test('id4', function (t) {
t.strictEqual(result, 'Electronic', 'raw gnre');
})
.on('stik', function (result) {
t.strictEqual(result, 256, 'raw stik');
t.strictEqual(result, 1, 'raw stik');
Copy link
Owner Author

Choose a reason for hiding this comment

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

1 is actually the correct value for stik, the previous implementation was broken.

t.end();
})
.on('done', function (err) {
t.error(err)
Copy link
Owner Author

Choose a reason for hiding this comment

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

Best to check done event in all tests too.

@@ -16,5 +16,6 @@ test('mp3 cbr calculation', function (t) {
})
.on('done', function (err) {
t.error(err);
t.end()
Copy link
Owner Author

Choose a reason for hiding this comment

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

Better to call end when we can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant