Skip to content

Commit

Permalink
Remove path usage (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed May 18, 2017
1 parent b1dc16b commit affd30e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
8 changes: 2 additions & 6 deletions co-mocha.js
@@ -1,6 +1,5 @@
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.coMocha = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
var co = require('co')
var path = require('path')
var isGenFn = require('is-generator').fn

/**
Expand Down Expand Up @@ -53,7 +52,6 @@ function coMocha (mocha) {
* @return {Array}
*/
function findNodeJSMocha () {
var suffix = path.sep + path.join('', 'mocha', 'index.js')
var children = require.cache || {}

return Object.keys(children)
Expand All @@ -71,9 +69,7 @@ var modules = typeof window === 'undefined' ? findNodeJSMocha() : [window.Mocha]

modules.forEach(coMocha)

},{"co":3,"is-generator":4,"path":2}],2:[function(require,module,exports){

},{}],3:[function(require,module,exports){
},{"co":2,"is-generator":3}],2:[function(require,module,exports){

/**
* slice() reference.
Expand Down Expand Up @@ -312,7 +308,7 @@ function isObject(val) {
return Object == val.constructor;
}

},{}],4:[function(require,module,exports){
},{}],3:[function(require,module,exports){
/**
* Export generator function checks.
*/
Expand Down
2 changes: 0 additions & 2 deletions lib/co-mocha.js
@@ -1,5 +1,4 @@
var co = require('co')
var path = require('path')
var isGenFn = require('is-generator').fn

/**
Expand Down Expand Up @@ -52,7 +51,6 @@ function coMocha (mocha) {
* @return {Array}
*/
function findNodeJSMocha () {
var suffix = path.sep + path.join('', 'mocha', 'index.js')
var children = require.cache || {}

return Object.keys(children)
Expand Down
3 changes: 0 additions & 3 deletions package.json
Expand Up @@ -8,9 +8,6 @@
"lib/",
"LICENSE"
],
"browser": {
"path": false
},
"scripts": {
"lint": "standard",
"build": "browserify lib/co-mocha.js -s co-mocha -o co-mocha.js",
Expand Down

0 comments on commit affd30e

Please sign in to comment.