Skip to content

Commit

Permalink
win32 suites
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Weatherford committed Feb 27, 2021
1 parent e52cb5c commit a8f1822
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/paramFiles.addMissingParameters.inTemplateFile.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import * as assert from 'assert';
import { CodeAction, Command, Uri } from 'vscode';
import { addMissingParameters, assignTemplateGraphToDeploymentTemplate, DeploymentTemplateDoc, getNormalizedDocumentKey, getVSCodeRangeFromSpan, IAddMissingParametersArgs, INotifyTemplateGraphArgs, LinkedFileLoadState, NormalizedMap, ofType, Span } from '../extension.bundle';
import { isWin32 } from '../src/constants';
import { TextDocumentFake } from './fakes/TextDocumentFake';
import { TextEditorFake } from './fakes/TextEditorFake';
import { getCodeActionContext } from './support/getCodeActionContext';
Expand Down Expand Up @@ -38,8 +39,9 @@ suite("Add missing parameters for nested/linked templates", () => {
const expectedResultText = expectedDt.documentText;

// Get template
const templateUri = Uri.file("/mainTemplate.json");
const childUri = Uri.file("file:///childTemplate.json");
const root = isWin32 ? 'c:\\' : '/';
const templateUri = Uri.file(`${root}mainTemplate.json`);
const childUri = Uri.file(`${root}childTemplate.json`);

// Get linked template
const { dt, markers: { bang } } = await parseTemplateWithMarkers(template, undefined, { fromFile: true, documentUri: templateUri, tabSize });
Expand Down

0 comments on commit a8f1822

Please sign in to comment.