Skip to content

Formatting module files

Given a file named “pen.json” with:

{
"type": "library",
"dependencies": {}
}

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
}

Given a file named “Foo.pen” with:

Foo = \() none {
none
}

When I run pen format --checked

Then the exit status should not be 0.