Skip to content

Commit ef6fc86

Browse files
committed
test: fix language detection
1 parent 49418b1 commit ef6fc86

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

highlight/test/highlight_test.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import 'dart:io';
2+
import 'package:highlight/languages/all.dart';
23
import 'package:path/path.dart' as path;
3-
import 'package:highlight/highlight.dart' show highlight;
4+
import 'package:highlight/highlight_core.dart' show highlight;
45
import 'package:test/test.dart';
56

67
void main() {
78
var fixturesDir = '../vendor/highlight.js/test';
9+
highlight.registerLanguages(builtinLanguages);
810

911
group('basic', () {
1012
test('language is null', () {

0 commit comments

Comments
 (0)