Skip to content

Commit

Permalink
fix/test: update cases & macOS (hexojs#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang authored and nevilm-lt committed Apr 22, 2022
1 parent ee7c7ba commit 5259e90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/highlight.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,9 @@ describe('highlight', () => {

const result = highlight(str, {autoDetect: true});
result.should.eql([
'<figure class="highlight javascript"><table><tr>',
'<figure class="highlight typescript"><table><tr>',
gutter(1, 6),
code('<span class="meta">&quot;use strict&quot;</span>;\n<span class="keyword">var</span> string = <span class="string">`</span>\n<span class="string"> Multi</span>\n<span class="string"></span>\n<span class="string"> string</span>\n<span class="string">`</span>', null),
code('<span class="meta">&quot;use strict&quot;</span>;</span><br><span class="line"><span class="keyword">var</span> <span class="built_in">string</span> = <span class="string">`</span></span><br><span class="line"><span class="string"> Multi</span></span><br><span class="line"><span class="string"></span></span><br><span class="line"><span class="string"> string</span></span><br><span class="line"><span class="string">`</span>', null),
end
].join(''));
validateHtmlAsync(result, done);
Expand Down
2 changes: 1 addition & 1 deletion test/spawn.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});

Expand Down

0 comments on commit 5259e90

Please sign in to comment.