Skip to content

Commit

Permalink
Merge pull request #500 from pelias/test-module
Browse files Browse the repository at this point in the history
Add tests for module exports
  • Loading branch information
orangejulius committed Apr 23, 2020
2 parents c737102 + 7ff690a commit a18f477
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 0 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
module.exports = {
metadataStream: require('./src/components/metadataStream'),
isActiveRecord: require('./src/components/isActiveRecord').create,
isNotNullIslandRelated: require('./src/components/isNotNullIslandRelated').create,
loadJSON: require('./src/components/loadJSON').create,
parseMetaFiles: require('./src/components/parseMetaFiles').create,
recordHasIdAndProperties: require('./src/components/recordHasIdAndProperties').create,
recordHasName: require('./src/components/recordHasName').create,
conformsTo: require('./src/components/conformsTo').create,
Expand Down
8 changes: 8 additions & 0 deletions test/module.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const tape = require('tape');

const wof_module = require('../');

tape('test the exports of whosonfirst module', function(test) {
test.equals(typeof wof_module, 'object');
test.end();
});
1 change: 1 addition & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ require ('./importStreamTest.js');
require ('./peliasDocGeneratorsTest.js');
require ('./readStreamTest.js');
require ('./schema.js');
require ('./module.js');
require ('./bundleList.js');
require('./functional.js');

0 comments on commit a18f477

Please sign in to comment.