We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bad260d commit 4415955Copy full SHA for 4415955
tests/lib/entry.spec.mjs
@@ -1,20 +1,15 @@
1
import {
2
- describe,
3
- it,
+ describe,
+ it,
4
} from 'node:test';
5
6
import assert from 'node:assert/strict';
7
8
import Entry from '../../lib/entry.js';
9
10
-/**
11
- * @param {string} value
12
- *
13
- * @return {string}
14
- */
15
-function strip_test_spacing(value) {
16
- return value.replace(/^\t+/, '');
17
-}
+import {
+ strip_test_spacing,
+} from './utilities.mjs';
18
19
describe('docdown', () => {
20
describe('Entry', () => {
tests/lib/utilities.mjs
@@ -0,0 +1,8 @@
+/**
+ * @param {string} value
+ *
+ * @return {string}
+ */
+export function strip_test_spacing(value) {
+ return value.replace(/^\t+/gm, '');
+}
0 commit comments