Skip to content

Completed todo in tests#18

Open
ThatUdeshUK wants to merge 2 commits into99x-incubator:masterfrom
ThatUdeshUK:tests
Open

Completed todo in tests#18
ThatUdeshUK wants to merge 2 commits into99x-incubator:masterfrom
ThatUdeshUK:tests

Conversation

@ThatUdeshUK
Copy link
Copy Markdown

Fixed issue #1

Fixed the todo in test.js to test the validator

Comment thread tests/index.js Outdated
const expect = chai.expect;

const Validator = require("../src/");
var Validator = require("../src");
Copy link
Copy Markdown

@rajitha1998 rajitha1998 Jan 7, 2020

Choose a reason for hiding this comment

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

Using const makes the most sense here. Since we don't want to overwrite the Validator variable which contains the library that has been imported. Is there any reason that it has to be changed to var @UdeshUK .

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yes, that makes sense. I'll revert it back.

@ThatUdeshUK
Copy link
Copy Markdown
Author

@rajitha1998 Reverted the validator import to a const

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.

2 participants