Skip to content

Anthony Robinson#6

Open
AMKRobinson wants to merge 4 commits into
codefellows-seattle-javascript-401d20:masterfrom
AMKRobinson:master
Open

Anthony Robinson#6
AMKRobinson wants to merge 4 commits into
codefellows-seattle-javascript-401d20:masterfrom
AMKRobinson:master

Conversation

@AMKRobinson
Copy link
Copy Markdown

No description provided.

Comment thread lib/greet.js

module.exports = function(name){
if(typeof name === 'string'){
return `hello ${name}`
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

great use of template literal!

Comment thread lib/arithmetic.js Outdated
// } else {
// return a - b;
// }
// };
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

remove corpse code and resubmit for full credit

Comment thread __test__/greet.test.js
let result = greet(123)
expect(result).toEqual(null)
console.log('number');
});
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

typo on line 11 . test is missing the t

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

remove console logs and resubmit for full credit.

test('add() should return null', () => {
let result = arithmetic.sub()
expect(result).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.

this looks great, just remember to recheck the test massage when you copy code from a previous test. line 15 says "should return 2".

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