Skip to content

Commit fb23c07

Browse files
authored
Merge pull request #6538 from davidwengier/RazorIntegrationTests
2 parents b71740c + a0b77b1 commit fb23c07

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/razorIntegrationTests/formatting.integration.test.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jestLib.describe(`Razor Formatting ${testAssetWorkspace.description}`, function
3232
const htmlConfig = vscode.workspace.getConfiguration('html');
3333
await htmlConfig.update('format.enable', true);
3434

35-
await integrationHelpers.activateCSharpExtension();
3635
await integrationHelpers.openFileInWorkspaceAsync(path.join('Pages', 'BadlyFormatted.razor'));
36+
await integrationHelpers.activateCSharpExtension();
3737
});
3838

3939
jestLib.afterAll(async () => {
@@ -61,12 +61,20 @@ jestLib.describe(`Razor Formatting ${testAssetWorkspace.description}`, function
6161

6262
jestLib.expect(edits).toBeDefined();
6363

64+
console.log(`Got ${edits.length} edits`);
65+
6466
// It's much easier to verify the expected state of the document, than a bunch of edits
6567
const formatEdit = new vscode.WorkspaceEdit();
6668
formatEdit.set(activeDocument, edits);
69+
70+
console.log(`Applying edit ${formatEdit}`);
71+
6772
await vscode.workspace.applyEdit(formatEdit);
6873

6974
const contents = normalizeNewlines(vscode.window.activeTextEditor?.document.getText());
75+
76+
console.log(`Checking document contents...`);
77+
7078
jestLib.expect(contents).toBe(
7179
normalizeNewlines(`@page "/bad"
7280

0 commit comments

Comments
 (0)