test: cover home path detection variants
This commit is contained in:
parent
94fd9d1259
commit
cf21001b18
1 changed files with 2 additions and 0 deletions
|
|
@ -44,7 +44,9 @@ describe('platformPath Windows containment', () => {
|
|||
expect(isAbsoluteOrHomePath('/Users/Alice/Repo')).toBe(true);
|
||||
expect(isAbsoluteOrHomePath('C:\\Users\\Alice\\Repo')).toBe(true);
|
||||
expect(isAbsoluteOrHomePath('\\\\server\\share\\Repo')).toBe(true);
|
||||
expect(isAbsoluteOrHomePath('~')).toBe(true);
|
||||
expect(isAbsoluteOrHomePath('~/Repo')).toBe(true);
|
||||
expect(isAbsoluteOrHomePath('~\\Repo')).toBe(true);
|
||||
expect(isAbsoluteOrHomePath('src/app.ts')).toBe(false);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue