From 6c78bfff75e399b17665996aff3839ebd62c5eaf Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Tue, 8 Dec 2020 16:00:48 +0800 Subject: [PATCH] fix/test: update cases & macOS (#237) --- test/highlight.spec.js | 4 ++-- test/spawn.spec.js | 2 +- 2 files changed, 3 insertions(+), 3 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); 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); } });