Skip to content
This repository has been archived by the owner on Jan 9, 2018. It is now read-only.

added a csv.generate function #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

saadtazi
Copy link

Hi,
I exposed a generate() function, mainly to simplify the tests of express apps that use your package.

Thanks,

Saad

@@ -37,28 +42,131 @@ describe('express-csv', function() {
});

it('should expose .separator', function() {
csv.separator.should.be.a('string');
csv.separator.should.be.type('string');
Copy link
Author

Choose a reason for hiding this comment

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

After running npm install, I got an erro while trying to run the test, saying that a is not a function... I checked shouldjs documentation, "be.type" seems a valid way of testing the type.

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

Successfully merging this pull request may close these issues.

1 participant