コード例 #1
0
ファイル: utils.js プロジェクト: Luisangonzalez/psi
 it('should select yellow for scores between 21 and 79', function () {
   var expected = chalk.yellow.toString();
   var score = 50;
   assert.equal(utils.scoreColor(score).toString(), expected);
 });
コード例 #2
0
ファイル: utils.js プロジェクト: addyosmani/psi
 it('should select yellow for scores between 21 and 79', () => {
   const expected = chalk.yellow.toString();
   const score = 50;
   assert.equal(utils.scoreColor(score).toString(), expected);
 });