Skip to content
Myr

node.js

This file

Path

spec/node.js

60 lines · 1.1 KiB · JavaScript

Last changed by

Started converting fs modulevisionmediabefore adoptionf03e460

History of this file

Take it

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption6f7141a

lines 1–7why, one step back
1
2require.paths.unshift('spec', 'lib', 'spec/lib', 'spec/support/libxmljs')3require("jspec")4require("express")5require("express/spec")67print = puts

Started converting fs modulevisionmediabefore adoptionf03e460

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

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption6f7141a

line 10why, one step back
10

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoptione125ae2

lines 11–20why, one step back
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',

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoptione125ae2

lines 22–26why, one step back
22 'request',
23 'mime',24 'static',25 'collection',26 'plugins',

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoption704c933

line 27why, one step back
27 'plugins.cache',

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoptione125ae2

lines 28–35why, one step back
28 'plugins.view',
29 'plugins.common-logger',30 'plugins.content-length',31 'plugins.method-override',32 'plugins.body-decoder',33 'plugins.redirect',34 'plugins.hooks',35 'plugins.cookie',

Started Session pluginvisionmediabefore adoption7238afb

line 36why, one step back
36 'plugins.session',

Merge branch 'flash'visionmediabefore adoption3863a76

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

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoptione125ae2

lines 38–58why, one step back
38 ],
39 dependant: [40 'element-collection'41 ]42}4344switch (process.ARGV[2]) {45 case 'independant':46 run(specs.independant)47 break48 case 'dependant':49 run(specs.dependant)50 break51 case 'all':52 run(specs.independant)53 run(specs.dependant)54 break55 default: 56 run([process.ARGV[2]])57}58

Merge branch 'cache-lifetime'visionmediabefore adoption5ce1306

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

Merge branch 'master' of git://github.com/visionmedia/expressciaranjbefore adoptione125ae2

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