-
-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba49e65
commit ccb6032
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const {DEFAULT_TEST_ENV} = require('./testUtils/default-env'); | ||
const {runAndCompareSnap} = require('./testUtils/testUtils'); | ||
describe('Generated readme with max post count', function () { | ||
it('should match the snapshot', async function () { | ||
const envObj = { | ||
...process.env, | ||
...DEFAULT_TEST_ENV, | ||
INPUT_MAX_POST_COUNT: '1' | ||
}; | ||
await runAndCompareSnap('Readme.maxPostCount.md', envObj); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Readme test | ||
Post list example: | ||
<!-- BLOG-POST-LIST:START --> | ||
- [God Mode in browsers: document.designMode = "on"](https://dev.to/gautamkrishnar/god-mode-in-browsers-document-designmode-on-2pmo) | ||
<!-- BLOG-POST-LIST:END --> | ||
|
||
# Other contents | ||
Test content |