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
brwy_rails-0.0.6 test/dummy/node_modules/fsevents/test/fsevents.js
brwy_rails-0.0.5 test/dummy/node_modules/fsevents/test/fsevents.js
brwy_rails-0.0.4 test/dummy/node_modules/fsevents/test/fsevents.js
brwy_rails-0.0.3 test/dummy/node_modules/fsevents/test/fsevents.js
brwy_rails-0.0.2 test/dummy/node_modules/fsevents/test/fsevents.js
brwy_rails-0.0.1 test/dummy/node_modules/fsevents/test/fsevents.js
es6_tilt-0.1.2 test/dummy/app/assets/javascripts/node_modules/fsevents/test/fsevents.js
es6_tilt-0.1.1 test/dummy/app/assets/javascripts/node_modules/fsevents/test/fsevents.js
es6_tilt-0.1.0 test/dummy/app/assets/javascripts/node_modules/fsevents/test/fsevents.js
hooch-0.4.2 jasmine/node_modules/karma/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
gulp_assets-1.0.0.pre.5 template/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
gulp_assets-1.0.0.pre.4 template/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
gulp_assets-1.0.0.pre.3 template/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
hooch-0.3.0 jasmine/node_modules/karma/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
hooch-0.2.1 jasmine/node_modules/karma/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
hooch-0.2.0 jasmine/node_modules/karma/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
hooch-0.1.0 jasmine/node_modules/karma/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
hooch-0.0.8 jasmine/node_modules/karma/node_modules/chokidar/node_modules/fsevents/test/fsevents.js