path2/test/windows/is-absolute.js
raw| 1 | 'use strict'; |
| 2 | |
| 3 | module.exports = exports = function (t, a) { exports.tests(t, a); }; |
| 4 | |
| 5 | exports.tests = function (t, a) { |
| 6 | a(t('//server/file'), true); |
| 7 | a(t('\\\\server\\file'), true); |
| 8 | a(t('C:/Users/'), true); |
| 9 | a(t('C:\\Users\\'), true); |
| 10 | a(t('C:cwd/another'), false); |
| 11 | a(t('C:cwd\\another'), false); |
| 12 | a(t('directory/directory'), false); |
| 13 | a(t('directory\\directory'), false); |
| 14 | }; |