Skip to content

Commit

Permalink
fix: "x" parameter in many tests is optional (Agoric#8750)
Browse files Browse the repository at this point in the history
  • Loading branch information
erights authored and anilhelvaci committed Feb 16, 2024
1 parent ec8e389 commit e583ef0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/vat-data/test/test-durable-classes.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test('test defineDurableExoClass', t => {
const makeUpCounter = defineDurableExoClass(
upCounterKind,
UpCounterI,
/** @param {number} x */
/** @param {number} [x] */
(x = 0) => ({ x }),
{
incr(y = 1) {
Expand Down Expand Up @@ -69,7 +69,7 @@ test('test defineDurableExoClassKit', t => {
const makeCounterKit = defineDurableExoClassKit(
counterKindHandle,
{ up: UpCounterI, down: DownCounterI },
/** @param {number} x */
/** @param {number} [x] */
(x = 0) => ({ x }),
{
up: {
Expand Down Expand Up @@ -124,7 +124,7 @@ test('finish option', t => {
UpCounterI,
/**
* @param {string} name
* @param {number} x
* @param {number} [x]
*/
(name, x = 0) => ({ name, x }),
{
Expand Down
4 changes: 2 additions & 2 deletions packages/vat-data/test/test-prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test('test prepareExoClass', t => {
baggage,
'UpCounter',
UpCounterI,
/** @param {number} x */
/** @param {number} [x] */
(x = 0) => ({ x }),
{
incr(y = 1) {
Expand Down Expand Up @@ -66,7 +66,7 @@ test('test prepareExoClassKit', t => {
baggage,
'Counter',
{ up: UpCounterI, down: DownCounterI },
/** @param {number} x */
/** @param {number} [x] */
(x = 0) => ({ x }),
{
up: {
Expand Down
4 changes: 2 additions & 2 deletions packages/vat-data/test/test-virtual-classes.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test('test defineVirtualExoClass', t => {
const makeUpCounter = defineVirtualExoClass(
'UpCounter',
UpCounterI,
/** @param {number} x */
/** @param {number} [x] */
(x = 0) => ({ x }),
{
incr(y = 1) {
Expand Down Expand Up @@ -58,7 +58,7 @@ test('test defineVirtualExoClassKit', t => {
const makeCounterKit = defineVirtualExoClassKit(
'Counter',
{ up: UpCounterI, down: DownCounterI },
/** @param {number} x */
/** @param {number} [x] */
(x = 0) => ({ x }),
{
up: {
Expand Down

0 comments on commit e583ef0

Please sign in to comment.