Navigation Menu

Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Update doc and test for sunos/solaris switch
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Sep 11, 2012
1 parent 6e0b8b1 commit 1c2982b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/api/process.markdown
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion test/simple/test-fs-watch.js
Expand Up @@ -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);
Expand Down

0 comments on commit 1c2982b

Please sign in to comment.