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

Commit

Permalink
Update fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
Z committed Jan 28, 2015
1 parent b595506 commit de13b11
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
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 de13b11

Please sign in to comment.