Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Update doc and test for sunos/solaris switch

  • Loading branch information
isaacs committed Sep 11, 2012
1 parent 6e0b8b1 commit 1c2982b94f46765d85b71a0efe3b832d3caff35f
Showing with 2 additions and 2 deletions.
  1. +1 −1 doc/api/process.markdown
  2. +1 −1 test/simple/test-fs-watch.js
@@ -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);

0 comments on commit 1c2982b

Please sign in to comment.
You can’t perform that action at this time.