From 84538d69b42671538429d036991587bc0845b64d Mon Sep 17 00:00:00 2001
From: MDLeom <43627182+curbengh@users.noreply.github.com>
Date: Sat, 25 Apr 2020 03:45:12 +0100
Subject: [PATCH] test(highlight): sublanguage only works with 'autoDetect'
---
test/highlight.spec.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/highlight.spec.js b/test/highlight.spec.js
index 2a0a55cb..193fb79f 100644
--- a/test/highlight.spec.js
+++ b/test/highlight.spec.js
@@ -220,11 +220,11 @@ describe('highlight', () => {
it('highlight sublanguages', done => {
const str = '';
- const result = highlight(str, {lang: 'xml'});
+ const result = highlight(str, { autoDetect: true });
result.should.eql([
- '',
+ '',
gutter(1, 1),
- code('<node><?php echo "foo"; ?></node>', null),
+ code('<node><?php echo "foo"; ?></node>', null),
end
].join(''));
validateHtmlAsync(result, done);