Skip to content

Commit 4ac77b2

Browse files
committed
Bump micro-should devdep
1 parent 3dbe87b commit 4ac77b2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"c8": "10.1.3",
6060
"chai": "4.3.4",
6161
"chai-subset": "1.6.0",
62-
"micro-should": "0.4.0",
62+
"micro-should": "0.5.0",
6363
"prettier": "3.1.1",
6464
"typescript": "5.5.2"
6565
},

test/index.test.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { chmod, rmdir, mkdir, symlink, readdir, readFile, writeFile } from 'node:fs/promises';
1+
import { chmod, rm, mkdir, symlink, readdir, readFile, writeFile } from 'node:fs/promises';
22
import sysPath from 'node:path';
33
import { fileURLToPath } from 'node:url';
44
import { Readable } from 'node:stream';
@@ -52,15 +52,15 @@ async function beforeEach() {
5252
const i = testCount.toString();
5353
currPath = sysPath.join(root, i);
5454
try {
55-
await rmdir(currPath, { recursive: true });
55+
await rm(currPath, { recursive: true });
5656
} catch (e) {}
5757
await mkdir(currPath, { recursive: true });
5858
return true;
5959
}
6060

6161
let afterEach = async () => {
6262
// await pRimraf(currPath);
63-
await rmdir(currPath, { recursive: true });
63+
await rm(currPath, { recursive: true });
6464
};
6565

6666
describe('readdirp', () => {
@@ -349,7 +349,7 @@ describe('readdirp', () => {
349349
isWarningCalled = true;
350350
});
351351
await delay(1000);
352-
await rmdir(sysPath.join(currPath, 'a'), { recursive: true });
352+
await rm(sysPath.join(currPath, 'a'), { recursive: true });
353353
stream.resume();
354354
await Promise.race([waitForEnd(stream), delay(2000)]);
355355
isWarningCalled.should.equals(true);
@@ -412,7 +412,7 @@ describe('readdirp', () => {
412412
await mkdir(root, { recursive: true });
413413
// Declare last task here
414414
it('clean-up', async () => {
415-
await rmdir(root, { recursive: true, force: true });
415+
await rm(root, { recursive: true, force: true });
416416
});
417-
it.run();
417+
it.run(true);
418418
})();

0 commit comments

Comments
 (0)