Skip to content

Commit 05fec39

Browse files
authored
Test formatting (#19)
* Format MediaQueriesSpec tests. * Format AnimationsSpec tests. * Format SelectorsSpec tests. * Format AlignSpec tests. * Format BackgroundSpec tests. * Format BoxSpec tests. * Format ColorSpec tests. * Format ContentSpec tests. * Format DisplaySpec tests. * Format FlexboxSpec tests. * Format FontsSpec tests. * Format GridSpec tests. * Format ImagesSpec tests. * Format InlineSpec tests. * Format ListsSpec tests. * Format Test.Main. * Format MaskingSpec tests. * Format OverflowSpec tests. * Format PositionSpec tests. * Format RenderSpec tests. * Format SizingSpec tests. * Format TextDecorSpec tests. * Format TextSpec tests. * Format TransformsSpec tests. * Format TransitionsSpec tests. * Format UISpec tests. * Format test utils. * Format VisufxSpec tests. * Format VisurenSpec tests. * Format WritingModesSpec tests. * Updates around formatting. * Formatting changelog entry
1 parent 9776491 commit 05fec39

33 files changed

+2049
-1181
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: spago -x test.dhall test
4242

4343
- name: Check formatting
44-
run: purs-tidy check src
44+
run: purs-tidy check examples src test
4545

4646
- name: Install Node.js dependencies
4747
run: npm install

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ New features:
1313
Bugfixes:
1414

1515
Other improvements:
16-
- Examples are now formatted using `purs-tidy`.
16+
- Examples and tests are now formatted using `purs-tidy`.
1717

1818
## [0.1.5] - 2022-12-05
1919
New features:

CONTRIBUTING.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ The `src` directory includes the following modules:
4040

4141
Usually your work will begin in the `Tecton.Internal` module. From this module, export the minimum functions, types, and classes required for client code to compile. Then, from the `Tecton` module, re-export only the subset that client code should interact with directly. This architecture clearly defines the public API while allowing implementation details to remain flexible.
4242

43-
After making any changes, run `purs-tidy format-in-place examples src` to format the code.
44-
45-
> ⚠️ **NOTE**: For now, only format the modules in the `examples` and `src` directories. Formatting for tests is under review.
43+
After making any changes, run `purs-tidy format-in-place examples src test` to format the code.
4644

4745
Unit test(s) should accompany each change. Ensure that the system under test (e.g. the new property binding you added) is imported from the `Tecton` module so that tests accurately represent client code. Tests are organized into modules corresponding to W3C CSS specifications, which can be found [here](https://www.w3.org/TR/css-2021/), and almost always follow this format:
4846

0 commit comments

Comments
 (0)