diff --git a/index.js b/index.js
index 3f509bf..f427c23 100644
--- a/index.js
+++ b/index.js
@@ -65,7 +65,7 @@ const DEFAULT_OPTIONS = {
* Guarantees/Invariants:
*
*
- * - Equivalent states are {@link assert.deepStrictEqual}.
+ * - Equivalent states are {@link module:assert.deepStrictEqual}.
* - States can be round-tripped to JSON at any point.
* - States are owned by the caller, so any additional properties (which are
* permitted to violate the above guarantees) are preserved and the same
@@ -103,7 +103,7 @@ function StreamState() {
this.totalDataLen = 0;
}
-/** Options for {@link streamCompare}.
+/** Options for {@link module:stream-compare}.
*
* @template CompareResult
* @typedef {{
@@ -169,7 +169,8 @@ function StreamState() {
* @param {!module:stream.Readable} stream2 Second stream to compare.
* @param {!StreamCompareOptions|
* function(!StreamState,!StreamState): CompareResult} optionsOrCompare
- * Options, or a comparison function (as described in {@link options.compare}).
+ * Options, or a comparison function (as described in
+ * {@link StreamCompareOptions#compare}).
* @returns {StreamComparePromise} A
Promise
with
* the comparison result or error.
*/
diff --git a/test/stream-compare.js b/test/stream-compare.js
index 903ca9f..7afa4cb 100644
--- a/test/stream-compare.js
+++ b/test/stream-compare.js
@@ -5,8 +5,8 @@
'use strict';
-const { EventEmitter } = require('node:events');
const assert = require('node:assert');
+const { EventEmitter } = require('node:events');
const stream = require('node:stream');
// https://github.com/import-js/eslint-plugin-import/issues/2844