Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
fix: Fix the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kptdobe committed Mar 7, 2019
1 parent f4cb9fb commit 66ec9f0
Show file tree
Hide file tree
Showing 8 changed files with 205 additions and 170 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ The `types` property is an array of string values that describes the type of the

- `has-<type>`: for each type of content that occurs at least once in the section, e.g. has-heading
- `is-<type>-only`: for sections that only have content of a single type, e.g. is-image-only
- `is-<type-1>-<type-2>-<type3>`, `is-<type-1>-<type-2>`, and `is-<type-1>` for the top 3 most frequent types of children in the section. For instance a gallery with a heading and description would be `is-image-paragraph-heading`. You can infer additional types using [`utils.types`](#infer-content-types-with-utilstypes).
- `is-<type-1>-<type-2>-<type3>`, `is-<type-1>-<type-2>`, and `is-<type-1>` for the top 3 most frequent types of children in the section. For instance a gallery with a heading and description would be `is-image-text-heading`. You can infer additional types using [`utils.types`](#infer-content-types-with-utilstypes).
- `nb-<type>-<occurences>`: number of occurences of each type in the section

Each section has additional content-derived metadata properties, in particular:
Expand Down Expand Up @@ -579,8 +579,8 @@ Step 5 (diff only):
+ ],
+ "title": "Hello World",
+ "types": [
+ "has-paragraph",
+ "is-paragraph-only"
+ "has-text",
+ "is-text-only"
+ ],
+ "intro": "Hello World",
+ "meta": {}
Expand Down
Loading

0 comments on commit 66ec9f0

Please sign in to comment.