diff --git a/package.json b/package.json index 8428e98..36d6dd3 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "mocha": "~1.14.0" }, "scripts": { - "test": "node test.js" + "test": "node test/test.js" }, "bin": { "badge": "./gh-badge.js" }, "files": [ diff --git a/ass-stubs/cli-test.js b/test/cli-test.js similarity index 100% rename from ass-stubs/cli-test.js rename to test/cli-test.js diff --git a/ass-stubs/server-test.js b/test/server-test.js similarity index 50% rename from ass-stubs/server-test.js rename to test/server-test.js index d8f548b..9852a11 100644 --- a/ass-stubs/server-test.js +++ b/test/server-test.js @@ -1,5 +1,3 @@ -// We don't require ass because we can't test a majority of the server reliably. -//require('ass'); require('../server.js'); console.log('ready'); process.on('SIGTERM', function() { process.exit(0); }); diff --git a/test.js b/test/test.js similarity index 92% rename from test.js rename to test/test.js index cdec1fe..d752df9 100644 --- a/test.js +++ b/test/test.js @@ -40,7 +40,7 @@ var server; test('The CLI', [ ['should provide a help message', function(done, assert) { - var child = cproc.spawn('node', ['ass-stubs/cli-test.js']); + var child = cproc.spawn('node', ['test/cli-test.js']); var buffer = ''; child.stdout.on('data', function(chunk) { buffer += ''+chunk; @@ -52,7 +52,7 @@ test('The CLI', [ }], ['should produce default badges', function(done, assert) { var child = cproc.spawn('node', - ['ass-stubs/cli-test.js', 'cactus', 'grown']); + ['test/cli-test.js', 'cactus', 'grown']); child.stdout.on('data', function(chunk) { var buffer = ''+chunk; assert(buffer.startsWith('= 0 && !isDone) { done(); isDone = true; }