Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Jan 11, 2023
1 parent b9bb8fe commit 71a5451
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/scriptlets/trusted-set-constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import {
*
* ! Set array or object as property value, argument should be a JSON string
* example.org#%#//scriptlet('trusted-set-constant', 'click_r', '[1,"string"]', 'true')
* example.org#%#//scriptlet('trusted-set-constant', 'click_r', ''{"aaa":123,"bbb":{"ccc":"string"}}'', 'true')
* example.org#%#//scriptlet('trusted-set-constant', 'click_r', '{"aaa":123,"bbb":{"ccc":"string"}}', 'true')
* ```
*
* 2. Use script stack matching to set value
Expand Down
2 changes: 1 addition & 1 deletion tests/scriptlets/trusted-set-constant.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ if (!isSupported) {
assert.strictEqual(window[numberProp], 1234, '"1234" is set as number');
clearGlobalProps(numberProp);

// setting constant to -1
// setting constant to a negative number
const minusOneProp = 'minusOneProp';
runScriptletFromTag(minusOneProp, '-12.34', SHOULD_INFER_KEYWORD);
assert.strictEqual(window[minusOneProp], -12.34, '"-12.34" is set as number');
Expand Down

0 comments on commit 71a5451

Please sign in to comment.