Formatting module files
Background
Section titled “Background”Given a file named “pen.json” with:
{ "type": "library", "dependencies": {}}Format module files
Section titled “Format module files”Given a file named “Foo.pen” with:
Foo = \() none {
none}When I successfully run pen format
Then a file named “Foo.pen” should contain exactly:
Foo = \() none { none}Check if module files are formatted
Section titled “Check if module files are formatted”Given a file named “Foo.pen” with:
Foo = \() none {
none}When I run pen format --checked
Then the exit status should not be 0.