Skip to content

Commit

Permalink
Expose Lesshint and Runner classes in the public API
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilsson committed Jan 24, 2017
1 parent 6ea7f70 commit 73482c1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
'use strict';

module.exports = {
Lesshint: require('./lesshint'),
Runner: require('./runner')
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "lesshint",
"description": "A tool to aid you in writing clean and consistent Less.",
"version": "2.4.0",
"main": "./lib/lesshint.js",
"main": "./lib/index.js",
"author": {
"name": "Jonathan Wilsson",
"email": "jonathan.wilsson@gmail.com"
Expand Down
15 changes: 15 additions & 0 deletions test/specs/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use strict';

const expect = require('chai').expect;

describe('lesshint', function () {
const api = require('../../lib/index');

it('should expose Lesshint class in public API', function () {
expect(api.Lesshint).to.be.a('function');
});

it('should expose Runner class in public API', function () {
expect(api.Runner).to.be.a('function');
});
});

0 comments on commit 73482c1

Please sign in to comment.