Skip to content

Commit

Permalink
fix: "x" parameter in many tests was optional (#1965)
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Jan 14, 2024
1 parent 73b5059 commit 1ff3c4b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/exo/test/test-amplify-heap-class-kits.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test('test amplify defineExoClass fails', t => {
defineExoClass(
'UpCounter',
UpCounterI,
/** @param {number} x */
/** @param {number} [x] */
(x = 0) => ({ x }),
{
incr(y = 1) {
Expand All @@ -46,7 +46,7 @@ test('test amplify defineExoClassKit', t => {
const makeCounterKit = defineExoClassKit(
'Counter',
{ up: UpCounterI, down: DownCounterI },
/** @param {number} x */
/** @param {number} [x] */
(x = 0) => ({ x }),
{
up: {
Expand Down
4 changes: 2 additions & 2 deletions packages/exo/test/test-heap-classes.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ test('test defineExoClass', t => {
const makeUpCounter = defineExoClass(
'UpCounter',
UpCounterI,
/** @param {number} x */
/** @param {number} [x] */
(x = 0) => ({ x }),
{
incr(y = 1) {
Expand Down Expand Up @@ -105,7 +105,7 @@ test('test defineExoClassKit', t => {
const makeCounterKit = defineExoClassKit(
'Counter',
{ up: UpCounterI, down: DownCounterI },
/** @param {number} x */
/** @param {number} [x] */
(x = 0) => ({ x }),
{
up: {
Expand Down
4 changes: 2 additions & 2 deletions packages/exo/test/test-label-instances.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test('test defineExoClass', t => {
const makeUpCounter = defineExoClass(
'UpCounter',
UpCounterI,
/** @param {number} x */
/** @param {number} [x] */
(x = 0) => ({ x }),
{
incr() {
Expand All @@ -49,7 +49,7 @@ test('test defineExoClassKit', t => {
const makeCounterKit = defineExoClassKit(
'Counter',
{ up: UpCounterI, down: DownCounterI },
/** @param {number} x */
/** @param {number} [x] */
(x = 0) => ({ x }),
{
up: {
Expand Down
2 changes: 1 addition & 1 deletion packages/exo/test/test-non-enumerable-methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ test('test defineExoClass', t => {
const makeUpCounter = defineExoClass(
'UpCounter',
UpCounterI,
/** @param {number} x */
/** @param {number} [x] */
(x = 0) => ({ x }),
denumerate({
incr(y = 1) {
Expand Down

0 comments on commit 1ff3c4b

Please sign in to comment.