Skip to content

Lab-david#14

Open
austriker27 wants to merge 19 commits into
codefellows-seattle-javascript-401d19:masterfrom
austriker27:lab-david
Open

Lab-david#14
austriker27 wants to merge 19 commits into
codefellows-seattle-javascript-401d19:masterfrom
austriker27:lab-david

Conversation

@austriker27
Copy link
Copy Markdown

No description provided.

Comment thread __test__/arithmetic.test.js Outdated
});

test('arithmetic.add should return null if either parameter is a non-number', () => {
expect(arithmetic.add('')).toEqual('null');
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you're only passing in one argument here, you should also test if one parameter is a non number but the other is.

Comment thread __test__/arithmetic.test.js Outdated
});

test('arithmetic.sub should return null if either parameter is a non-number', () => {
expect(arithmetic.sub('')).toEqual('null');
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

same thing as your add function

Comment thread __test__/greet.test.js Outdated
});

test('greet.hi should return null when user supplies non string values', () => {
expect(greet.hi('')).toEqual('null');
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

you should also be testing for a number input here

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