This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("A calculator", function() { | |
it("should square correctly", function(done) { | |
[ | |
{ number: 2, answer: 4}, | |
{ number: 3, answer: 9}, | |
{ number: 4, answer: 16} | |
].forEach(function(problem, index, array){ | |
// we will pretend to calculate with our fnc here | |
setTimeout(function(){ | |
var calcAnswer = problem.number*problem.number; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("A calculator", function() { | |
it("should square correctly", function() { | |
[ | |
{ number: 2, answer: 4}, | |
{ number: 3, answer: 9}, | |
{ number: 4, answer: 16} | |
].forEach(function(problem, index, array){ | |
// we will pretend to calculate with our fnc here | |
var calcAnswer = problem.number*problem.number; | |
expect(calcAnswer).toEqual(problem.answer); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# a couple alias to switch iterm window from dark to light | |
alias itermlight='echo -e "\033]50;SetProfile=light\a"' | |
alias itermdark='echo -e "\033]50;SetProfile=dark\a"' |
NewerOlder