-
Notifications
You must be signed in to change notification settings - Fork 15
lab-cayla #6
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
base: master
Are you sure you want to change the base?
lab-cayla #6
Conversation
@@ -0,0 +1,117 @@ | |||
# Created by https://www.gitignore.io/api/node,vim,osx,macos,linux | |||
|
|||
*node_modules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work ignoring node modules
gulp.watch(['**/*.js', '!node_modules/**'], ['lint', 'test']); | ||
}); | ||
|
||
gulp.task('default', ['dev']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work making your default gulp task run all of your other tasks!
|
||
greet.sayHi('gary'); | ||
greet.sayBye(); | ||
greet.randomGreeting(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work creating a different method for printing the user input out
|
||
|
||
module.exports = exports = {}; | ||
var someName = process.argv[2]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work storing the process.argv argument in a variable to use more easily later.
}; | ||
|
||
exports.randomGreeting = function(){ | ||
console.log(`hi ${someName}!`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay string interpolation!
}); | ||
|
||
it('should throw a missing name name error', function(){ | ||
var result = greet.sayHi; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job storing the result of the method in a variable to more cleanly test below.
No description provided.