From d575e0e04ad1a4f92b3c03ca5a025c11d36a4723 Mon Sep 17 00:00:00 2001 From: Ruslan Kazakov Date: Thu, 27 Apr 2017 15:16:46 +1000 Subject: [PATCH] Fixing tests --- README.md | 14 ++++++++------ test/test.js | 23 +++++++++++------------ 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index b675f65..5d450aa 100644 --- a/README.md +++ b/README.md @@ -35,10 +35,10 @@ Default: `true` ### Input ```html - - - - + + + + ``` @@ -48,7 +48,7 @@ Default: `true` ###### style.css ```css body { - background-color: #FFF; + background-color: #fff; } ``` @@ -56,7 +56,7 @@ body { ```html - + @@ -64,6 +64,8 @@ body { ## Release History +* 0.2.6 + * UPDATE: unit tests * 0.2.5 * UPDATE: head tag charset order * UPDATE: remove invalid img tag diff --git a/test/test.js b/test/test.js index 83302e5..e70fb5d 100644 --- a/test/test.js +++ b/test/test.js @@ -11,7 +11,7 @@ describe('ampify', function() { describe('html amp tag', function() { - it('should add amp attribute on html tag', function () { + it('should add amp attribute on html tag', function() { test( '', '', @@ -25,7 +25,7 @@ describe('ampify', function() { describe('meta charset tag', function() { - it('should include meta tag with utf-8 charset attribute', function () { + it('should include meta tag with utf-8 charset attribute', function() { test( '', '', @@ -33,7 +33,7 @@ describe('ampify', function() { ); }); - it('should not include meta tag if it is already there', function () { + it('should not include meta tag if it is already there', function() { test( '', '', @@ -45,7 +45,7 @@ describe('ampify', function() { describe('meta viewport tag', function() { - it('should include meta viewport tag with content attribute', function () { + it('should include meta viewport tag with content attribute', function() { test( '', '', @@ -53,7 +53,7 @@ describe('ampify', function() { ); }); - it('should not include meta viewport tag if it is already there', function () { + it('should not include meta viewport tag if it is already there', function() { test( '', '', @@ -65,7 +65,7 @@ describe('ampify', function() { describe('style amp-boilerplate tag', function() { - it('should include style amp-boilerplate tag', function () { + it('should include style amp-boilerplate tag', function() { test( '', '', @@ -73,7 +73,7 @@ describe('ampify', function() { ); }); - it('should not include style amp-boilerplate tag if it is already there', function () { + it('should not include style amp-boilerplate tag if it is already there', function() { test( '', '', @@ -85,7 +85,7 @@ describe('ampify', function() { describe('amp library script tag', function() { - it('should include amp library script tag', function () { + it('should include amp library script tag', function() { test( '', '', @@ -93,7 +93,7 @@ describe('ampify', function() { ); }); - it('should not include amp library script tag if it is already there', function () { + it('should not include amp library script tag if it is already there', function() { test( '', '', @@ -107,10 +107,10 @@ describe('ampify', function() { describe('inline styles', function() { - it('should inject inline css into style tag', function () { + it('should inject inline css into style tag', function() { test( '', - '', + '', {cwd: __dirname.split(path.sep).pop()} ); }); @@ -144,7 +144,6 @@ describe('ampify', function() { ); }); - }); describe('amp-video tag', function() {