Update doc and test for sunos/solaris switch

v0.8.16-release
isaacs 2012-09-11 10:57:16 -07:00
parent 6e0b8b169c
commit 1c2982b94f
2 changed files with 2 additions and 2 deletions

View File

@ -355,7 +355,7 @@ What processor architecture you're running on: `'arm'`, `'ia32'`, or `'x64'`.
## process.platform ## process.platform
What platform you're running on: 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); console.log('This platform is ' + process.platform);

View File

@ -108,7 +108,7 @@ try { fs.mkdirSync(testsubdir, 0700); } catch (e) {}
assert.doesNotThrow( assert.doesNotThrow(
function() { function() {
var watcher = fs.watch(testsubdir, function(event, filename) { 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); assert.equal(renameEv, event);
if (expectFilePath) { if (expectFilePath) {
assert.equal('newfile.txt', filename); assert.equal('newfile.txt', filename);