diff options
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/inputs/test/format_spec.yue | 2 | ||||
| -rw-r--r-- | spec/outputs/test/format_spec.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/inputs/test/format_spec.yue b/spec/inputs/test/format_spec.yue index cbd9d22..3ad2c7f 100644 --- a/spec/inputs/test/format_spec.yue +++ b/spec/inputs/test/format_spec.yue | |||
| @@ -119,7 +119,7 @@ for file in *files | |||
| 119 | original_ast = yue.to_ast code | 119 | original_ast = yue.to_ast code |
| 120 | assert.is_not_nil original_ast | 120 | assert.is_not_nil original_ast |
| 121 | rewriteLineCol original_ast | 121 | rewriteLineCol original_ast |
| 122 | formated = yue.format code | 122 | formated = yue.format code, 0, false |
| 123 | ast = yue.to_ast formated | 123 | ast = yue.to_ast formated |
| 124 | assert.is_not_nil ast | 124 | assert.is_not_nil ast |
| 125 | rewriteLineCol ast | 125 | rewriteLineCol ast |
diff --git a/spec/outputs/test/format_spec.lua b/spec/outputs/test/format_spec.lua index ed0fbee..7aa85cd 100644 --- a/spec/outputs/test/format_spec.lua +++ b/spec/outputs/test/format_spec.lua | |||
| @@ -122,7 +122,7 @@ return describe("format", function() | |||
| 122 | local original_ast = yue.to_ast(code) | 122 | local original_ast = yue.to_ast(code) |
| 123 | assert.is_not_nil(original_ast) | 123 | assert.is_not_nil(original_ast) |
| 124 | rewriteLineCol(original_ast) | 124 | rewriteLineCol(original_ast) |
| 125 | local formated = yue.format(code) | 125 | local formated = yue.format(code, 0, false) |
| 126 | local ast = yue.to_ast(formated) | 126 | local ast = yue.to_ast(formated) |
| 127 | assert.is_not_nil(ast) | 127 | assert.is_not_nil(ast) |
| 128 | rewriteLineCol(ast) | 128 | rewriteLineCol(ast) |
