Sha256: fa86170a86b1bb1443773c93fb7b8d3c892c5ce8df3372abd211969993db82ac

Contents?: true

Size: 723 Bytes

Versions: 91

Compression:

Stored size: 723 Bytes

Contents

/*
 ** © 2014 by Philipp Dunkel <pip@pipobscure.com>
 ** Licensed under MIT License.
 */

/* jshint node:true */
'use strict';

var test = require('tap').test;

test('checking main module', function(t) {
  var mod = load('../');
  t.ok( !! mod, 'loading module');
  t.ok('function' === typeof mod, 'module.exports is an ' + (typeof mod));
  t.ok('function' === typeof mod.FSEvents, 'module.exports.FSEvents is an ' + (typeof mod));
  t.ok('function' === typeof mod.getInfo, 'module.exports.getInfo is an ' + (typeof mod));
  t.ok('object' === typeof mod.Constants, 'module.exports.Constants is an ' + (typeof mod));
  t.end();
});

function load(f) {
  try {
    return require(f);
  } catch (e) {
    return false;
  }
}

Version data entries

91 entries across 91 versions & 6 rubygems

Version Path
hooch-0.0.7 jasmine/node_modules/karma/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
hooch-0.0.6 jasmine/node_modules/karma/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.268 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.267 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.266 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.265 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.264 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.263 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.262 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.261 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.260 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.259 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.258 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.256 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.255 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.254 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.253 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.252 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.251 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.250 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js