Skip to content

Commit 87a5216

Browse files
committed
fix: test
1 parent 079bad3 commit 87a5216

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

eslint.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ export default antfu(
1010
}
1111
},
1212
jsonc: false,
13+
test: {
14+
overrides: {
15+
'test/consistent-test-it': 'off'
16+
}
17+
},
1318
ignores: ['src/meta.ts']
1419
},
1520
configPrettier,

test/suite/extension.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ suite('PHPFmt Test', () => {
1111
`${pkg.author?.name}.${pkg.name}`
1212
);
1313

14-
it('can activate', async () => {
14+
test('can activate', async () => {
1515
assert.ok(extension != null);
1616
await extension.activate();
1717
});
1818

19-
it('can format with command', async () => {
19+
test('can format with command', async () => {
2020
if (vscode.workspace.workspaceFolders == null) {
2121
assert.fail();
2222
}
@@ -41,13 +41,13 @@ suite('PHPFmt Test', () => {
4141
}
4242
});
4343

44-
it('should register commands', async () => {
44+
test('should register commands', async () => {
4545
const commands = await vscode.commands.getCommands(true);
4646
const foundCommands = commands.filter(value => value.startsWith('phpfmt.'));
4747
assert.equal(foundCommands.length, pkg.contributes.commands.length);
4848
});
4949

50-
it('should commands work', () => {
50+
test('should commands work', () => {
5151
const commands = pkg.contributes.commands as Array<{
5252
command: string;
5353
title: string;

0 commit comments

Comments
 (0)