diff --git a/test/test.js b/test/test.js index aef7983..97bd096 100644 --- a/test/test.js +++ b/test/test.js @@ -136,7 +136,7 @@ describe('Git Checks', function() { // 'dtr' contains module exportsfrom 01-data-to-rows describe('Part 1: From Data to Rows', function() { - + it('tagIt should return a string of the form content, even if the content and tagname are random English words', function() { let t = 'h1', c = 'Header Words', @@ -157,7 +157,9 @@ describe('Part 1: From Data to Rows', function() { }); it('peopleRows should return a full with appropriate data', function() { - expect (dtr.peopleRows([dtr.biko, dtr.tambo]), 'Check your table code for differences').to.equal(`
Steve Biko19461977SASO,Black ConsciousnessThe most potent weapon in the hands of the oppressor is the mind of the oppressed.
Oliver Tambo19171993ANCThe fight for freedom must go on until it is won; until our country is free and happy and peaceful as part of the community of man, we cannot rest.
`) ; + expect (dtr.peopleRows([dtr.biko, dtr.tambo]), + 'Check your table code for differences').to + .equal(`
Steve Biko19461977SASO,Black ConsciousnessThe most potent weapon in the hands of the oppressor is the mind of the oppressed.
Oliver Tambo19171993ANCThe fight for freedom must go on until it is won; until our country is free and happy and peaceful as part of the community of man, we cannot rest.
`) ; }); }); @@ -210,13 +212,16 @@ describe('Part 2: Dom Tricks', function(done) { done(); }); - // TODO: fix - it('Nav Border Color', function(done) { - expect($('nav').css("border-bottom-width"), 'The `border-bottom width` property should be set to 10px'). + it('Nav Border', function(done) { +// console.log("border-bottom", $('nav').css()) + expect($('nav').css("border-bottom-width"), + 'The `border bottom` shold be set to 10px'). to.equal('10px'); - expect($('nav').css("border-bottom-style"), 'The `border-bottom style` property should be set to solid'). + expect($('nav').css("border-bottom-style"), + 'The `background-color` property should be set to blue'). to.equal('solid'); - expect($('nav').css("border-bottom-color"), 'The `border-bottom coloe` property should be set to rgb(180,40,40)'). + expect($('nav').css("border-bottom-color"), + 'The `background-color` property should be set to blue'). to.equal('rgb(180,40,40)'); done();