Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhamley committed Nov 20, 2019
1 parent 591bf1b commit 706e5a8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/expression-tests/sqrt/nan/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"isZoomConstant": true,
"type": "number"
},
"outputs": [2, 0.5, 1],
"outputs": [2, 0.5, null],
"serialized": ["sqrt", ["number", ["get", "x"], 1]]
}
}
25 changes: 25 additions & 0 deletions test/unit/style-spec/fixture/numbers.output-api-supported.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[
{
"line": 42,
"message": "layers[2].paint.circle-radius: -1 is less than the minimum value 0"
},
{
"message": "layers[3].paint.circle-radius: number expected, null found"
},
{
"line": 58,
"message": "layers[4].paint.circle-radius: missing required property \"stops\""
},
{
"line": 66,
"message": "layers[5].paint.circle-radius: number expected, array found"
},
{
"line": 74,
"message": "layers[6].paint.circle-radius: number expected, boolean found"
},
{
"line": 6,
"message": "source.data: Unsupported property \"data\""
}
]

0 comments on commit 706e5a8

Please sign in to comment.