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 when data to parse is equal to null #2143

Conversation

nicosang
Copy link
Contributor

No description provided.

it('should throw an error when parse is called and config object has not been set properly', function () {
expect(dashParser.parse.bind('')).to.be.throw('Missing config parameter(s)');
});

it('should throw an error when parse is called without data and config object has been set properly', function () {
let errorHandlerMock = new ErrorHandlerMock();
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor stuff. Could you please declare it as const?

it('should throw an error when parse is called and config object has not been set properly', function () {
expect(dashParser.parse.bind('')).to.be.throw('Missing config parameter(s)');
});

it('should throw an error when parse is called without data and config object has been set properly', function () {
let errorHandlerMock = new ErrorHandlerMock();
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor stuff. Could you please declare it as const?

@epiclabsDASH epiclabsDASH merged commit 1d38d73 into Dash-Industry-Forum:development Sep 5, 2017
@nicosang nicosang deleted the UpdateDashParserUnitTest branch September 6, 2017 07:22
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.

None yet

2 participants