Browse files

Improve platform check

  • Loading branch information...
1 parent 2c44301 commit 9e4959b73ac08aa55a5a0fdf492c04e3ea79b6d5 @bergie bergie committed Feb 18, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/fbp.coffee
View
2 spec/fbp.coffee
@@ -1,4 +1,4 @@
-if typeof process is 'object' and process.title is 'node'
+if typeof process isnt 'undefined' and process.execPath and process.execPath.indexOf('node') isnt -1
chai = require 'chai' unless chai
parser = require '../lib/fbp'
else

0 comments on commit 9e4959b

Please sign in to comment.