From 08614570347394aedff02b720f9c7e73bc57dbf4 Mon Sep 17 00:00:00 2001 From: electric-el Date: Thu, 26 May 2022 04:34:34 -0400 Subject: [PATCH] updated tests to work with fixed cheerio version --- scripts/pattern/annotations-viewer.js | 2 +- test/unit/annotations-viewer.js | 8 ++++---- test/unit/code-viewer.js | 8 ++++---- test/unit/zit-inyerface.js | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/scripts/pattern/annotations-viewer.js b/scripts/pattern/annotations-viewer.js index 3585193..8b185d6 100644 --- a/scripts/pattern/annotations-viewer.js +++ b/scripts/pattern/annotations-viewer.js @@ -215,7 +215,7 @@ const messageObj = { annotationsUpdate: true, - annotations: annotations, + annotations, patternPartial }; diff --git a/test/unit/annotations-viewer.js b/test/unit/annotations-viewer.js index 9bfd882..c88e387 100644 --- a/test/unit/annotations-viewer.js +++ b/test/unit/annotations-viewer.js @@ -304,8 +304,8 @@ describe('annotationsViewer', function () { expect(sgAnnotationsAfter.html).to.equal(`

1. Navigation

Navigation for responsive web experiences can be tricky. Large navigation menus -are typical on desktop sites, but mobile screen sizes don't give us the luxury -of space. We're dealing with this situation by creating a simple menu anchor +are typical on desktop sites, but mobile screen sizes don't give us the luxury +of space. We're dealing with this situation by creating a simple menu anchor that toggles the main navigation on small screens. Once the screen size is large enough to accommodate the nav, we show the main navigation links and hide the menu anchor.

@@ -360,8 +360,8 @@ menu anchor.

expect(sgAnnotationsAfter.html).to.equal(`

1. Navigation

Navigation for responsive web experiences can be tricky. Large navigation menus -are typical on desktop sites, but mobile screen sizes don't give us the luxury -of space. We're dealing with this situation by creating a simple menu anchor +are typical on desktop sites, but mobile screen sizes don't give us the luxury +of space. We're dealing with this situation by creating a simple menu anchor that toggles the main navigation on small screens. Once the screen size is large enough to accommodate the nav, we show the main navigation links and hide the menu anchor.

diff --git a/test/unit/code-viewer.js b/test/unit/code-viewer.js index 975eaed..27323ac 100644 --- a/test/unit/code-viewer.js +++ b/test/unit/code-viewer.js @@ -1386,11 +1386,11 @@ describe('codeViewer', function () { expect(sgCodeLineageAfter.css.display).to.equal('block'); expect(sgCodeLineageFillAfter.html).to.equal( // eslint-disable-next-line indent -'elements-paragraph'); +'elements-paragraph'); expect(sgCodeLineagerAfter.css.display).to.equal('block'); expect(sgCodeLineagerFillAfter.html).to.equal( // eslint-disable-next-line indent -'components-region'); +'components-region'); expect(codeViewer.viewall).to.be.true; }); @@ -1446,11 +1446,11 @@ describe('codeViewer', function () { expect(sgCodeLineageAfter.css.display).to.equal('block'); expect(sgCodeLineageFillAfter.html).to.equal( // eslint-disable-next-line indent -'elements-paragraph'); +'elements-paragraph'); expect(sgCodeLineagerAfter.css.display).to.equal('block'); expect(sgCodeLineagerFillAfter.html).to.equal( // eslint-disable-next-line indent -'components-region'); +'components-region'); expect(codeViewer.viewall).to.be.false; }); diff --git a/test/unit/zit-inyerface.js b/test/unit/zit-inyerface.js index 980aaf7..349cbc0 100644 --- a/test/unit/zit-inyerface.js +++ b/test/unit/zit-inyerface.js @@ -681,7 +681,7 @@ content_key: content /* eslint-disable indent */ expect(messageGitNaStateAfter.html).to.equal( `
Command failed: git remote --verbose
-'git' is not recognized as an internal or external command, operable program or batch file.
`); +'git' is not recognized as an internal or external command, operable program or batch file.`); /* eslint-enable indent */ expect(paneGitNaStateAfter.css.display).to.equal('block'); expect(paneGitStateAfter.css).to.not.have.key('display'); @@ -810,7 +810,7 @@ content_key: content /* eslint-disable indent */ expect(messageGitNaStateAfter.html).to.equal( `
Command failed: git remote --verbose
-'git' is not recognized as an internal or external command, operable program or batch file.
`); +'git' is not recognized as an internal or external command, operable program or batch file.`); /* eslint-enable indent */ expect(paneGitNaStateAfter.css.display).to.equal('block'); expect(paneGitStateAfter.css).to.not.have.key('display'); @@ -980,7 +980,7 @@ content_key: content /* eslint-disable indent */ expect(messageGitNaStateAfter.html).to.equal( `
Command failed: git remote --verbose
-'git' is not recognized as an internal or external command, operable program or batch file.
`); +'git' is not recognized as an internal or external command, operable program or batch file.`); /* eslint-enable indent */ expect(paneGitNaStateAfter.css.display).to.equal('block'); expect(paneGitStateAfter.css).to.not.have.key('display');