Skip to content

Commit

Permalink
Add tests for #3223 (#8849)
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed Jul 28, 2020
1 parent 7348a9d commit 272bea5
Show file tree
Hide file tree
Showing 2 changed files with 190 additions and 0 deletions.
175 changes: 175 additions & 0 deletions tests/markdown/list/__snapshots__/jsfmt.spec.js.snap
Expand Up @@ -2783,6 +2783,181 @@ proseWrap: "always"
================================================================================
`;

exports[`nested-tab.md - {"proseWrap":"always","tabWidth":0} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
tabWidth: 0
| printWidth
=====================================input======================================
# List with 1 tab indentation and \`-\`
- Top level list item 1
- Top level list item 2
- Nested List item 1
- Nested List item 2
- Sub-Nested List item 1
- Sub-Nested List item 2
# List with 1 tab indentation and \`*\`
* Top level list item 1
* Top level list item 2
* Nested List item 1
* Nested List item 2
* Sub-Nested List item 1
* Sub-Nested List item 2
=====================================output=====================================
# List with 1 tab indentation and \`-\`
- Top level list item 1
- Top level list item 2
- Nested List item 1
- Nested List item 2
- Sub-Nested List item 1
- Sub-Nested List item 2
# List with 1 tab indentation and \`*\`
- Top level list item 1
- Top level list item 2
- Nested List item 1
- Nested List item 2 _ Sub-Nested List item 1 _ Sub-Nested List item 2
================================================================================
`;

exports[`nested-tab.md - {"proseWrap":"always","tabWidth":4} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
tabWidth: 4
| printWidth
=====================================input======================================
# List with 1 tab indentation and \`-\`
- Top level list item 1
- Top level list item 2
- Nested List item 1
- Nested List item 2
- Sub-Nested List item 1
- Sub-Nested List item 2
# List with 1 tab indentation and \`*\`
* Top level list item 1
* Top level list item 2
* Nested List item 1
* Nested List item 2
* Sub-Nested List item 1
* Sub-Nested List item 2
=====================================output=====================================
# List with 1 tab indentation and \`-\`
- Top level list item 1
- Top level list item 2
- Nested List item 1
- Nested List item 2
- Sub-Nested List item 1
- Sub-Nested List item 2
# List with 1 tab indentation and \`*\`
- Top level list item 1
- Top level list item 2
- Nested List item 1
- Nested List item 2 _ Sub-Nested List item 1 _ Sub-Nested List item 2
================================================================================
`;

exports[`nested-tab.md - {"proseWrap":"always","tabWidth":999} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
tabWidth: 999
| printWidth
=====================================input======================================
# List with 1 tab indentation and \`-\`
- Top level list item 1
- Top level list item 2
- Nested List item 1
- Nested List item 2
- Sub-Nested List item 1
- Sub-Nested List item 2
# List with 1 tab indentation and \`*\`
* Top level list item 1
* Top level list item 2
* Nested List item 1
* Nested List item 2
* Sub-Nested List item 1
* Sub-Nested List item 2
=====================================output=====================================
# List with 1 tab indentation and \`-\`
- Top level list item 1
- Top level list item 2
- Nested List item 1
- Nested List item 2
- Sub-Nested List item 1
- Sub-Nested List item 2
# List with 1 tab indentation and \`*\`
- Top level list item 1
- Top level list item 2
- Nested List item 1
- Nested List item 2 _ Sub-Nested List item 1 _ Sub-Nested List item 2
================================================================================
`;

exports[`nested-tab.md - {"proseWrap":"always"} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
| printWidth
=====================================input======================================
# List with 1 tab indentation and \`-\`
- Top level list item 1
- Top level list item 2
- Nested List item 1
- Nested List item 2
- Sub-Nested List item 1
- Sub-Nested List item 2
# List with 1 tab indentation and \`*\`
* Top level list item 1
* Top level list item 2
* Nested List item 1
* Nested List item 2
* Sub-Nested List item 1
* Sub-Nested List item 2
=====================================output=====================================
# List with 1 tab indentation and \`-\`
- Top level list item 1
- Top level list item 2
- Nested List item 1
- Nested List item 2
- Sub-Nested List item 1
- Sub-Nested List item 2
# List with 1 tab indentation and \`*\`
- Top level list item 1
- Top level list item 2
- Nested List item 1
- Nested List item 2 _ Sub-Nested List item 1 _ Sub-Nested List item 2
================================================================================
`;

exports[`ordered.md - {"proseWrap":"always","tabWidth":0} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
Expand Down
15 changes: 15 additions & 0 deletions tests/markdown/list/nested-tab.md
@@ -0,0 +1,15 @@
# List with 1 tab indentation and `-`
- Top level list item 1
- Top level list item 2
- Nested List item 1
- Nested List item 2
- Sub-Nested List item 1
- Sub-Nested List item 2

# List with 1 tab indentation and `*`
* Top level list item 1
* Top level list item 2
* Nested List item 1
* Nested List item 2
* Sub-Nested List item 1
* Sub-Nested List item 2

0 comments on commit 272bea5

Please sign in to comment.