Update completion order in test

This commit is contained in:
Ron Buckton 2018-05-01 22:21:33 -07:00
parent 860f9f88f6
commit 66c11c527a
2 changed files with 2 additions and 2 deletions

View file

@ -2986,7 +2986,7 @@ namespace ts {
export function changeAnyExtension(path: string, ext: string, extensions: string | ReadonlyArray<string>, ignoreCase: boolean): string;
export function changeAnyExtension(path: string, ext: string, extensions?: string | ReadonlyArray<string>, ignoreCase?: boolean) {
const pathext = extensions !== undefined && ignoreCase !== undefined ? getAnyExtensionFromPath(path, extensions, ignoreCase) : getAnyExtensionFromPath(path);
return pathext ? path.slice(0, path.length - pathext.length) + (ts.startsWith(ext, ".") ? ext : "." + ext) : path;
return pathext ? path.slice(0, path.length - pathext.length) + (startsWith(ext, ".") ? ext : "." + ext) : path;
}
/**

View file

@ -39,6 +39,6 @@ verify.completions(
},
{
at: kinds.map(k => `${k}2`),
are: ["e1", "f1", "f2", "tests", "folder"],
are: ["e1", "f1", "f2", "folder", "tests"],
isNewIdentifierLocation: true,
});