Skip to content

Commit

Permalink
Add a couple of exports and - undocumented for now
Browse files Browse the repository at this point in the history
  • Loading branch information
gotwarlost committed Oct 31, 2012
1 parent 47821bb commit b61780f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ All the features of istanbul can be accessed as a library using its [public API]
Changelog
---------

* v0.1.17 : Export some more objects; undocumented for now
* v0.1.16 : Fix npm keywords for istanbul which expects an array of strings but was being fed a single string with keywords instead
* v0.1.15 : Add the 'check-coverage' command so that Istanbul can be used as a posttest script to enforce minimum coverage
* v0.1.14 : Expose the experimental YUI load hook in the interface
Expand Down
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ var path = require('path'),
Report = require('./lib/report'),
meta = require('./lib/util/meta');

//register our standard plaugins
require('./lib/register-plugins');

/**
Expand Down Expand Up @@ -104,7 +105,11 @@ module.exports = {
*/
VERSION: meta.VERSION,
//undocumented
_yuiLoadHook: require('./lib/util/yui-load-hook').getPostLoadHook
_yuiLoadHook: require('./lib/util/yui-load-hook').getPostLoadHook,
//undocumented
TreeSummarizer: require('./lib/util/tree-summarizer'),
//undocumented
assetsDir: path.resolve(__dirname, 'lib', 'vendor')
};


2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "istanbul",
"version": "0.1.16",
"version": "0.1.17",
"description": "Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale",
"keywords": [ "coverage", "code coverage", "JS code coverage", "JS coverage" ],
"author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>",
Expand Down
17 changes: 10 additions & 7 deletions test/other/test-index-xface.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
var main = require('../../index');


module.exports = {
"xface": function (test) {
test.ok(main.Instrumenter);
test.ok(main.Store);
test.ok(main.Collector);
test.ok(main.Report);
test.ok(main.hook);
test.ok(main.utils);
test.ok(main._yuiLoadHook && typeof main._yuiLoadHook === 'function');
[ 'Instrumenter', 'Store', 'Collector', 'Report', '_yuiLoadHook'].forEach(function (key) {
test.ok(main[key] && typeof main[key] === 'function', key + ' was not exported as a function!');
});
[ 'hook', 'utils' ].forEach(function (key) {
test.ok(main[key] && typeof main[key] === 'object', key + ' was not exported as an object!');
});
[ 'assetsDir'].forEach(function (key) {
test.ok(main[key] && typeof main[key] === 'string', key + ' was not exported as a string!');
});
test.done();
}
};

0 comments on commit b61780f

Please sign in to comment.