Skip to content

Commit f153e98

Browse files
WIP
1 parent 28d7365 commit f153e98

File tree

17 files changed

+54
-51
lines changed

17 files changed

+54
-51
lines changed
File renamed without changes.

src/__tests__/generators.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ok, strictEqual } from 'node:assert';
1+
import { ok, strictEqual } from 'node:assert/strict';
22
import { describe, it } from 'node:test';
33

44
import createGenerator from '../generators.mjs';

src/__tests__/metadata.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { strictEqual, deepStrictEqual } from 'node:assert';
1+
import { strictEqual, deepStrictEqual } from 'node:assert/strict';
22
import { describe, it } from 'node:test';
33

44
import GitHubSlugger from 'github-slugger';

src/__tests__/streaming.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { deepStrictEqual, ok, strictEqual } from 'node:assert';
1+
import { deepStrictEqual, ok, strictEqual } from 'node:assert/strict';
22
import { describe, it } from 'node:test';
33

44
import {

src/generators/legacy-html/utils/__tests__/safeCopy.test.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
'use strict';
2-
3-
import assert from 'node:assert';
1+
import assert from 'node:assert/strict';
42
import { mkdir, readFile, rm, utimes, writeFile } from 'node:fs/promises';
53
import { join } from 'node:path';
64
import { afterEach, beforeEach, describe, it } from 'node:test';

src/generators/legacy-json/utils/__tests__/buildSection.test.mjs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
'use strict';
2-
31
import assert from 'node:assert/strict';
4-
import { describe, test } from 'node:test';
2+
import { describe, it } from 'node:test';
53

64
import { UNPROMOTED_KEYS } from '../../constants.mjs';
75
import { promoteMiscChildren } from '../buildSection.mjs';
@@ -22,7 +20,7 @@ describe('promoteMiscChildren', () => {
2220
});
2321
}
2422

25-
test('ignores non-misc section', () => {
23+
it('ignores non-misc section', () => {
2624
const section = buildReadOnlySection({
2725
type: 'text',
2826
});
@@ -37,7 +35,7 @@ describe('promoteMiscChildren', () => {
3735
promoteMiscChildren(section, parent);
3836
});
3937

40-
test('ignores misc parent', () => {
38+
it('ignores misc parent', () => {
4139
const section = buildReadOnlySection({
4240
type: 'misc',
4341
});
@@ -52,7 +50,7 @@ describe('promoteMiscChildren', () => {
5250
promoteMiscChildren(section, parent);
5351
});
5452

55-
test('ignores keys in UNPROMOTED_KEYS', () => {
53+
it('ignores keys in UNPROMOTED_KEYS', () => {
5654
const sectionRaw = {
5755
type: 'misc',
5856
promotableKey: 'this should be promoted',
@@ -88,7 +86,7 @@ describe('promoteMiscChildren', () => {
8886
});
8987

9088
describe('merges properties correctly', () => {
91-
test('pushes child property if parent is an array', () => {
89+
it('pushes child property if parent is an array', () => {
9290
const section = buildReadOnlySection({
9391
type: 'misc',
9492
someValue: 'bar',
@@ -104,7 +102,7 @@ describe('promoteMiscChildren', () => {
104102
assert.deepStrictEqual(parent.someValue, ['foo', 'bar']);
105103
});
106104

107-
test('ignores child property if parent has a value that is not an array', () => {
105+
it('ignores child property if parent has a value that is not an array', () => {
108106
const section = buildReadOnlySection({
109107
type: 'misc',
110108
someValue: 'bar',
@@ -120,7 +118,7 @@ describe('promoteMiscChildren', () => {
120118
assert.strictEqual(parent.someValue, 'foo');
121119
});
122120

123-
test('promotes child property if parent does not have the property', () => {
121+
it('promotes child property if parent does not have the property', () => {
124122
const section = buildReadOnlySection({
125123
type: 'misc',
126124
someValue: 'bar',

src/generators/man-page/utils/__tests__/converter.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { strictEqual } from 'node:assert';
1+
import { strictEqual } from 'node:assert/strict';
22
import { describe, it } from 'node:test';
33

44
import { u } from 'unist-builder';

src/generators/metadata/__tests__/index.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { deepStrictEqual, strictEqual } from 'node:assert';
1+
import { deepStrictEqual, strictEqual } from 'node:assert/strict';
22
import { describe, it } from 'node:test';
33

44
import generator from '../index.mjs';

src/generators/orama-db/__tests__/generate.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { strictEqual, rejects, ok } from 'node:assert';
1+
import { strictEqual, rejects, ok } from 'node:assert/strict';
22
import { mkdtemp, readFile, rm } from 'node:fs/promises';
33
import { tmpdir } from 'node:os';
44
import { join } from 'node:path';

src/logger/__tests__/index.smoke.test.mjs

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)