Rooster Project Detail Code

https://gist.github.com/2d6e57ac274602d2d74de815bf73c8b13

const assert = require('assert'); const Rooster = require ('../index') describe ('Rooster',() => { describe('.announceDawn',() =>{ it ('Retrun Rooster Call', ()=>{ // Setup const expected = 'cock-a-doodle-doo!'; // Exercise const actual = Rooster.announceDawn(); //verify assert.equal(actual,expected); }) }) describe ('.annouceDawn', () => { describe ('.timeAtDawn', () => { it ('Rooster Time Calling', () => { // setup const inputNumber = 12; const expected = '12' // Exercise const actual = Rooster.timeAtDawn(inputNumber); // Verified assert.strictEqual(actual,expected); }); it('Throws a range error if passes a Number less than 0', () => { //setup const input = -1; const expected = RangeError; // verify // Exercise assert.throws(() => { Rooster.timeAtDawn(input) }, expected) }); it('Throws a range error if passes a Number more than 23', () => { //setup const input = 23; const expected = RangeError; // verify // Exercise assert.throws(() => { Rooster.timeAtDawn(input) }, expected) }); }); }); });