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

Write unit tests to test it returns all the constant keys with correct values #4

Closed
kabirbaidhya opened this issue Oct 20, 2017 · 2 comments
Labels

Comments

@kabirbaidhya
Copy link
Owner

Write unit tests to test it returns all the constant keys with correct values

@omoiframe
Copy link
Contributor

omoiframe commented Oct 20, 2017

@kabirbaidhya Hi, I'm a completely new to testing.
But will this kind of test suffice?

it('KEY_CANCEL should return 3', () => {
    assert.equal(KeyCode.KEY_CANCEL, 3);
});

I would be happy to help, if this looks alright to you. 😄

@kabirbaidhya
Copy link
Owner Author

@frameshft Yes, here we just have simple cases to cover, not much logic; so the purpose is just to verify things work fine in case we do some refactor or change things.

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

No branches or pull requests

2 participants