Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
orangewise committed Jul 1, 2016
1 parent 2656478 commit 6e702a4
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions test/output-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ test('JSON schema tests should output valid tap & xunit output', function (t) {
+ '# ok\n'
, 'Valid tap output for swagger file');
}));

output
.action({
testFile: './lib/json-tests',
Expand All @@ -38,29 +37,14 @@ test('JSON schema tests should output valid tap & xunit output', function (t) {
tape: test
})
.pipe(concat(function (r) {
var body = r.toString('utf8');
var body = r.toString('utf8').substr(0, 129);
t.equal(
body,
'TAP version 13\n'
+ '# Structure of JSON should conform to the schema\n'
+ 'not ok 1 JSON is NOT conform the schema\n'
+ ' ---\n'
+ ' operator: fail\n'
+ ' at: Test.<anonymous> (/Users/ronald/node/npm/rotan/lib/json-tests.js:9:1299)\n'
+ ' ...\n'
+ '# { [z-schema validation error: JSON_OBJECT_VALIDATION_FAILED]\n'
+ '# name: \x1b[32m\'z-schema validation error\'\x1b[39m,\n'
+ '# message: \x1b[32m\'JSON_OBJECT_VALIDATION_FAILED\'\x1b[39m,\n'
+ '# details:\n'
+ '# [ { code: \x1b[32m\'OBJECT_MISSING_REQUIRED_PROPERTY\'\x1b[39m,\n'
+ '# params: [ \x1b[32m\'paths\'\x1b[39m ],\n'
+ '# message: \x1b[32m\'Missing required property: paths\'\x1b[39m,\n'
+ '# path: [],\n'
+ '# schemaId: \x1b[90mundefined\x1b[39m } ] }\n\n'
+ '1..1\n'
+ '# tests 1\n'
+ '# pass 0\n'
+ '# fail 1\n'
, 'Valid tap output for swagger file');
}));

Expand Down

0 comments on commit 6e702a4

Please sign in to comment.