We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cb0482 commit 5731b47Copy full SHA for 5731b47
test/api/registerAlias.js
@@ -0,0 +1,24 @@
1
+'use strict';
2
+
3
+const hljs = require('../../build');
4
+const should = require('should');
5
6
+describe('.registerAlias()', () => {
7
+ it('should get an existing language by alias', () => {
8
+ hljs.registerAlias('jquery', {
9
+ languageName: 'javascript'
10
+ });
11
+ const result = hljs.getLanguage('jquery');
12
13
+ result.should.be.instanceOf(Object);
14
15
16
+ it('should get an existing language by aliases', () => {
17
+ hljs.registerAlias(['jquery', 'jqueryui'], {
18
19
20
21
22
23
24
+});
0 commit comments