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
smock-0.1.237 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.236 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.235 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.234 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.233 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.232 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.231 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.230 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.229 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.228 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.227 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.226 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.225 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.224 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.9 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.223 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.222 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.221 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.220 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js
smock-0.1.219 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/test/fsevents.js