From 0106609ad035a336b3a9ba5e003a80fb1fc35dcd Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Tue, 8 Dec 2020 14:56:09 +0800 Subject: [PATCH 1/2] Fix test cases --- test/highlight.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/highlight.spec.js b/test/highlight.spec.js index 5f3f475d..146d4bbb 100644 --- a/test/highlight.spec.js +++ b/test/highlight.spec.js @@ -335,9 +335,9 @@ describe('highlight', () => { const result = highlight(str, {autoDetect: true}); result.should.eql([ - '
', + '
', gutter(1, 6), - code('"use strict";\nvar string = `\n Multi\n\n string\n`', null), + code('"use strict";
var string = `
Multi

string
`', null), end ].join('')); validateHtmlAsync(result, done); From dc073f7aaf06bf5a5a084b26d5ea9f845b1c5e04 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Tue, 8 Dec 2020 15:04:36 +0800 Subject: [PATCH 2/2] Fix macOS --- test/spawn.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/spawn.spec.js b/test/spawn.spec.js index 66ed5f60..d046b0fc 100644 --- a/test/spawn.spec.js +++ b/test/spawn.spec.js @@ -32,7 +32,7 @@ describe('spawn', () => { out.trim().startsWith('Microsoft Windows').should.eql(true); } else { const out = await spawn('uname'); - out.trim().should.eql('Linux'); + ['Linux', 'Darwin'].includes(out.trim()).should.eql(true); } });