I hereby claim:
- I am zpratt on github.
- I am zpratt (https://keybase.io/zpratt) on keybase.
- I have a public key whose fingerprint is FC26 4F0D B662 F0EC 3159 AF7F 0D49 DF2F 2E27 C043
To claim this, I am signing this object:
var cachedModule = path.join(__dirname, '..', 'lib', '<module-being-tested.js>'); | |
delete require.cache[cachedModule]; |
I hereby claim:
To claim this, I am signing this object:
{ | |
"env": { | |
"node": true, | |
"mocha": true | |
}, | |
"rules": { | |
"no-alert": 2, | |
"no-array-constructor": 2, | |
"no-caller": 2, |
"devDependencies": { | |
"chai": "^1.9.1", | |
"grunt": "^0.4.5", | |
"grunt-contrib-jshint": "^0.10.0", | |
"grunt-karma": "^0.8.3", | |
"karma": "^0.12.17", | |
"karma-chai": "^0.1.0", | |
"karma-mocha": "^0.1.4", | |
"karma-phantomjs-launcher": "^0.1.4", | |
"load-grunt-tasks": "^0.6.0", |
module.exports = function (config) { | |
'use strict'; | |
config.set({ | |
basePath: '', | |
frameworks: ['mocha', 'chai'], | |
files: [ | |
'src/*.js', |
module.exports = (function () { | |
'use strict'; | |
return require('./parent-config')('/thoughtsom', process.env.BUILD_DIR); | |
}()); |
language: node_js | |
node_js: | |
- "0.10" | |
services: | |
- mongodb | |
env: | |
global: | |
- NODE_ENV=travisci | |
- BUILD_DIR=`pwd`/zpratt | |
before_script: |
module.exports = function (mainDir, cwd) { | |
'use strict'; | |
if (!cwd) { | |
cwd = ''; | |
} | |
return { | |
Default: { | |
projRoot: cwd + mainDir + '/src', |
/* jshint -W014 */ | |
(function () { | |
'use strict'; | |
var DB_CONFIG = require('config').database, | |
DEFAULTS = require('config').Default, | |
TESTVALS = require('config').TestVals, | |
mongoose = require('mongoose'), | |
casual = require('casual'), | |
connection, |
Default: | |
projRoot: '/development/node/thoughtsom/src' | |
serverRoot: '/development/node/thoughtsom/src/server' | |
testRoot: '/development/node/thoughtsom/test' | |
TestVals: | |
knownObjectId: '52ffef5e3242c4a82909c53f' | |
database: | |
host: localhost |