Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from apiaryio/zdne/protagonist-0.18.3
Browse files Browse the repository at this point in the history
Update to latest protagonist
  • Loading branch information
pksunkara committed Feb 3, 2015
2 parents 41e7f6a + de13b11 commit e899d5f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"dependencies": {
"coffee-script": "~1.7.1",
"yargs": "~1.3.3",
"protagonist-experimental": "~0.18.1",
"protagonist-experimental": "0.18.3",
"boutique": "git+ssh://[email protected]:apiaryio/boutique.git"
},
"devDependencies": {
Expand Down
10 changes: 9 additions & 1 deletion test/fixtures/blueprint.parseresult+sourcemap.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@
"headers": [],
"attributes": {},
"body": "Hello World!\n",
"schema": ""
"schema": "",
"assets": {
"body": {
"source": "Hello World!\n"
},
"schema": {
"source": ""
}
}
}
]
}
Expand Down
10 changes: 9 additions & 1 deletion test/fixtures/blueprint.parseresult.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@
"headers": [],
"attributes": {},
"body": "Hello World!\n",
"schema": ""
"schema": "",
"assets": {
"body": {
"source": "Hello World!\n"
},
"schema": {
"source": ""
}
}
}
]
}
Expand Down
10 changes: 4 additions & 6 deletions test/integration/cli-test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ describe 'Command line interface', () ->

it 'stdout should contain the parse result fixture', () ->
ast_fixture = require '../fixtures/blueprint.parseresult.json'
expected = JSON.stringify ast_fixture, null, 2
expected += '\n'
parsedStdout = JSON.parse stdout

assert.equal stdout, expected
assert.deepEqual parsedStdout, ast_fixture

describe 'parsing blueprint with source map', () ->
before (done) ->
Expand All @@ -57,10 +56,9 @@ describe 'Command line interface', () ->

it 'stdout should contain the source map parser result fixture', () ->
ast_fixture = require '../fixtures/blueprint.parseresult+sourcemap.json'
expected = JSON.stringify ast_fixture, null, 2
expected += '\n'
parsedStdout = JSON.parse stdout

assert.equal stdout, expected
assert.deepEqual parsedStdout, ast_fixture

describe 'parsing invalid blueprint', () ->
before (done) ->
Expand Down

0 comments on commit e899d5f

Please sign in to comment.