mirror of https://github.com/nodejs/node.git
Update doc and test for sunos/solaris switch
parent
6e0b8b169c
commit
1c2982b94f
|
@ -355,7 +355,7 @@ What processor architecture you're running on: `'arm'`, `'ia32'`, or `'x64'`.
|
|||
## process.platform
|
||||
|
||||
What platform you're running on:
|
||||
`'darwin'`, `'freebsd'`, `'linux'`, `'solaris'` or `'win32'`
|
||||
`'darwin'`, `'freebsd'`, `'linux'`, `'sunos'` or `'win32'`
|
||||
|
||||
console.log('This platform is ' + process.platform);
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ try { fs.mkdirSync(testsubdir, 0700); } catch (e) {}
|
|||
assert.doesNotThrow(
|
||||
function() {
|
||||
var watcher = fs.watch(testsubdir, function(event, filename) {
|
||||
var renameEv = process.platform === 'solaris' ? 'change' : 'rename';
|
||||
var renameEv = process.platform === 'sunos' ? 'change' : 'rename';
|
||||
assert.equal(renameEv, event);
|
||||
if (expectFilePath) {
|
||||
assert.equal('newfile.txt', filename);
|
||||
|
|
Loading…
Reference in New Issue