Skip to content

Commit 09fdb3e

Browse files
committedNov 11, 2024
Format
1 parent 09aac9e commit 09fdb3e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed
 

‎test.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {mock, test} from 'node:test';
2-
import { strict as assert } from 'assert';
3-
import fs from 'fs';
4-
import path from 'path';
5-
import { EOL } from 'os';
1+
import { mock, test } from 'node:test';
2+
import { strict as assert } from 'node:assert';
3+
import fs from 'node:fs';
4+
import path from 'node:path';
5+
import { EOL } from 'node:os';
66
import sh from 'shelljs';
77
import tmp from 'tmp';
88
import semver from 'semver';
@@ -382,18 +382,18 @@ test('should not bump when whatBump === false', async () => {
382382
}
383383
});
384384

385-
test('should use given whatBump when provided', async () => {
385+
test('should use given whatBump when provided', async () => {
386386
setup();
387387
sh.exec(`git tag 1.0.0`);
388388
add('fix', 'bar');
389-
const whatBump = mock.fn()
389+
const whatBump = mock.fn();
390390
{
391391
const options = getOptions({ whatBump });
392392
await runTasks(...options);
393-
assert.ok(whatBump.mock.callCount() > 1)
394-
const commitHeaders = whatBump.mock.calls[0].arguments[0]?.map((commit) => commit.header)
395-
assert.strictEqual(commitHeaders.length, 1)
396-
assert.match(commitHeaders[0], /^fix\(bar\):/)
393+
assert.ok(whatBump.mock.callCount() > 1);
394+
const commitHeaders = whatBump.mock.calls[0].arguments[0]?.map(commit => commit.header);
395+
assert.strictEqual(commitHeaders.length, 1);
396+
assert.match(commitHeaders[0], /^fix\(bar\):/);
397397
}
398398
});
399399

0 commit comments

Comments
 (0)
Please sign in to comment.