mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Fix typos in @kbn/handlebars package (#146385)
As a follow up to #146174 here's a PR containing the typo-fixes found by @azasypkin.
This commit is contained in:
parent
1cb49bb435
commit
185993c4b9
2 changed files with 4 additions and 4 deletions
|
@ -69,7 +69,7 @@ The tests for `@kbn/handlebars` are integrated into the regular test suite of Ki
|
|||
node scripts/jest packages/kbn-handlebars
|
||||
```
|
||||
|
||||
By default each test will run both the original `handlebars` code and the modified `@kbn/handlebars` code to compare if the output of the two are identical. To isolate a test run to just one or the other, you can use the following environment variables:
|
||||
By default, each test will run both the original `handlebars` code and the modified `@kbn/handlebars` code to compare if the output of the two are identical. To isolate a test run to just one or the other, you can use the following environment variables:
|
||||
|
||||
- `EVAL=1` - Set to only run the original `handlebars` implementation that uses `eval`.
|
||||
- `AST=1` - Set to only run the modified `@kbn/handlebars` implementation that doesn't use `eval`.
|
||||
|
@ -84,7 +84,7 @@ Some of the tests have been copied from the upstream `handlebars` project and mo
|
|||
|
||||
If the script outputs a diff for a given file, it means that this file has been updated.
|
||||
|
||||
_Note: that this will look for chanages in the `4.x` branch of the `handlebars.js` repo only. Changes in the `master` branch are ignored._
|
||||
_Note: that this will look for changes in the `4.x` branch of the `handlebars.js` repo only. Changes in the `master` branch are ignored._
|
||||
|
||||
Once all updates have been manually merged with our versions of the files, run the following script to "lock" us into the new updates:
|
||||
|
||||
|
@ -196,4 +196,4 @@ You can pretty print just the generated code using this command:
|
|||
node -e 'process.stdin.on(`data`, c => console.log(`(${eval(`(${c})`).code})`))' | \
|
||||
npx prettier --write --stdin-filepath template.js | \
|
||||
npx cli-highlight -l javascript
|
||||
```
|
||||
```
|
||||
|
|
|
@ -276,7 +276,7 @@ describe('builtin helpers', () => {
|
|||
// TODO: This test has been added to the `4.x` branch of the handlebars.js repo along with a code-fix,
|
||||
// but a new version of the handlebars package containing this fix has not yet been published to npm.
|
||||
//
|
||||
// Before enabling this code, a new version of handlebars needs to be released and the corrosponding
|
||||
// Before enabling this code, a new version of handlebars needs to be released and the corresponding
|
||||
// updates needs to be applied to this implementation.
|
||||
//
|
||||
// See: https://github.com/handlebars-lang/handlebars.js/commit/30dbf0478109ded8f12bb29832135d480c17e367
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue