Skip to content

catherine-looper#5

Open
ccloops wants to merge 4 commits into
codefellows-seattle-javascript-401d19:masterfrom
ccloops:master
Open

catherine-looper#5
ccloops wants to merge 4 commits into
codefellows-seattle-javascript-401d19:masterfrom
ccloops:master

Conversation

@ccloops
Copy link
Copy Markdown

@ccloops ccloops commented Nov 28, 2017

Completed Lab 01: Node Ecosystem

describe('arithmetic.test.js', () => {
describe('arithmetic.sum', () => {
test('does arithmetic.sum work properly', () => {
expect(arithmetic.sum('nine', 'one')).toBe(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.

it would also be a good idea for both add and sub to test for one argument as a number input and the other as non numeric input, one of each.

describe('greet.test.js', () => {
describe('greet.null', () => {
test('testing to return null for non string values', () => {
expect(greet.hello(null)).toBeNull();
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 inputting an empty string, and returning null, and also testing for a numeric input and returning null

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