Skip to content

Commit

Permalink
update tests for new api
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevor Livingston committed Aug 27, 2014
1 parent ef8846a commit 5cc1f5f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions test/test-swaggerize.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@ test('configure', function (t) {
});

t.test('api', function (t) {
t.plan(4);
t.plan(2);

var options = swaggerize({
api: require('./fixtures/api.json')
var routes = swaggerize({
api: require('./fixtures/api.json')
});

t.ok(thing.isObject(options), 'returns object.');
t.ok(thing.isObject(options.api), 'returns options.api object.');
t.ok(thing.isArray(options.routes), 'returns options.routes array.');
t.strictEqual(options.routes.length, 4, 'routes.length 4.');
t.ok(thing.isArray(routes), 'returns array.');
t.strictEqual(routes.length, 4, 'routes.length 4.');
});

});

0 comments on commit 5cc1f5f

Please sign in to comment.