main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
737 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 |
|
---|
3 | var test = require('tape');
|
---|
4 | var semver = require('semver');
|
---|
5 |
|
---|
6 | var supportsPreserveSymlinks = require('../');
|
---|
7 | var browser = require('../browser');
|
---|
8 |
|
---|
9 | test('supportsPreserveSymlinks', function (t) {
|
---|
10 | t.equal(typeof supportsPreserveSymlinks, 'boolean', 'is a boolean');
|
---|
11 |
|
---|
12 | t.equal(browser, null, 'browser file is `null`');
|
---|
13 | t.equal(
|
---|
14 | supportsPreserveSymlinks,
|
---|
15 | null,
|
---|
16 | 'in a browser, is null',
|
---|
17 | { skip: typeof window === 'undefined' }
|
---|
18 | );
|
---|
19 |
|
---|
20 | var expected = semver.satisfies(process.version, '>= 6.2');
|
---|
21 | t.equal(
|
---|
22 | supportsPreserveSymlinks,
|
---|
23 | expected,
|
---|
24 | 'is true in node v6.2+, false otherwise (actual: ' + supportsPreserveSymlinks + ', expected ' + expected + ')',
|
---|
25 | { skip: typeof window !== 'undefined' }
|
---|
26 | );
|
---|
27 |
|
---|
28 | t.end();
|
---|
29 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.