1- 'use strict' ;
2-
31import assert from 'node:assert/strict' ;
4- import { describe , test } from 'node:test' ;
2+ import { describe , it } from 'node:test' ;
53
64import { UNPROMOTED_KEYS } from '../../constants.mjs' ;
75import { 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' ,
0 commit comments