Skip to content
Myr

node.js

This file

Path

spec/node.js

48 lines · 912 bytes · JavaScript

Last changed by

Removed "sys" global mergevisionmediabefore adoptionafd70b6

History of this file

Take it

The walk stopped after 200 commits: lines older than 20cf8f8 point at it.

Session options in chat sample appvisionmediabefore adoption20cf8f8

line 1why, one step back
1

Merge branch 'node-0.1.30'visionmediabefore adoptionf7d7c4a

line 2why, one step back
2require.paths.unshift('spec', 'lib', 'spec/lib')

Session options in chat sample appvisionmediabefore adoption20cf8f8

lines 3–6why, one step back
3require("jspec")
4require("express")5require("express/spec")6

Removed "sys" global mergevisionmediabefore adoptionafd70b6

line 7why, one step back
7print = require('sys').puts

Merge branch 'node-0.1.30'visionmediabefore adoptionf7d7c4a

lines 8–9why, one step back
8quit = process.exit
9readFile = require('fs').readFileSync

Session options in chat sample appvisionmediabefore adoption20cf8f8

lines 10–20why, one step back
10
11function run(specs) {12 specs.forEach(function(spec){13 JSpec.exec('spec/spec.' + spec + '.js')14 })15}1617specs = {18 independant: [19 'core',20 'routing',

Mergevisionmediabefore adoptioncec6770

line 21why, one step back
21 'utils',

Session options in chat sample appvisionmediabefore adoption20cf8f8

lines 22–33why, one step back
22 'request',
23 'mime',24 'plugins',25 'plugins.cache',26 'plugins.view',27 'plugins.content-length',28 'plugins.method-override',29 'plugins.body-decoder',30 'plugins.redirect',31 'plugins.hooks',32 'plugins.cookie',33 'plugins.session',

Merge branch 'flash'visionmediabefore adoption3863a76

line 34why, one step back
34 'plugins.flash',

Closes #88.visionmediabefore adoptionb8f54d6

line 35why, one step back
35 'plugins.static',

Merge branch 'node-0.1.30'visionmediabefore adoptionf7d7c4a

line 36why, one step back
36 ]

Session options in chat sample appvisionmediabefore adoption20cf8f8

lines 37–46why, one step back
37}
3839switch (process.ARGV[2]) {40 case 'all':41 run(specs.independant)42 break43 default: 44 run([process.ARGV[2]])45}46

Merge branch 'cache-lifetime'visionmediabefore adoption5ce1306

line 47why, one step back
47Express.environment = 'test'

Session options in chat sample appvisionmediabefore adoption20cf8f8

line 48why, one step back
48JSpec.run({ reporter: JSpec.reporters.Terminal, failuresOnly: true }).report()