-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(info): Fix failing
yarn info
and yarn info <package> readme
…
…tests (#5410) **Summary** `yarn info` tests were broken due to some registry changes. This patch updates the tests to use an older package, left-pad to get master green. **Test plan** Fixes tests. All builds should pass.
- Loading branch information
Showing
2 changed files
with
46 additions
and
3 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,43 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`left-pad readme 1`] = ` | ||
"## left-pad | ||
String left pad | ||
[![Build Status][travis-image]][travis-url] | ||
## Install | ||
\`\`\`bash | ||
$ npm install left-pad | ||
\`\`\` | ||
## Usage | ||
\`\`\`js | ||
const leftPad = require('left-pad') | ||
leftPad('foo', 5) | ||
// => \\" foo\\" | ||
leftPad('foobar', 6) | ||
// => \\"foobar\\" | ||
leftPad(1, 2, '0') | ||
// => \\"01\\" | ||
leftPad(17, 5, 0) | ||
// => \\"00017\\" | ||
\`\`\` | ||
**NOTE:** The third argument should be a single \`char\`. However the module doesn't throw an error if you supply more than one \`char\`s. See [#28](https://github.com/stevemao/left-pad/pull/28). | ||
[travis-image]: https://travis-ci.org/stevemao/left-pad.svg?branch=master | ||
[travis-url]: https://travis-ci.org/stevemao/left-pad | ||
## Typings | ||
Typings copied from [@types/left-pad](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/left-pad) for convenience. | ||
" | ||
`; |
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