]> khamidou — GitHub mirrors - electron.git/commitdiff
spec: Test whether ffi works
authorCheng Zhao <zcbenz@gmail.com>
Wed, 23 Sep 2015 05:55:14 +0000 (13:55 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 23 Sep 2015 06:16:07 +0000 (14:16 +0800)
spec/modules-spec.coffee
spec/package.json

index e7bdac36b3e3d1254aa0ca16f084d5a65d828758..ed2d9fecb435e630e61371cbb13619745cdfc3bb 100644 (file)
@@ -22,6 +22,10 @@ describe 'third-party module', ->
           assert.equal msg, 'ok'
           done()
 
+    describe 'ffi', ->
+      it 'does not crash', ->
+        require 'ffi'
+
   describe 'q', ->
     Q = require 'q'
 
index a3b0d590effa07e7953a9b5b714b9f98da3b830c..8f43b711f19660fad85ab75f56e204e618be5b3d 100644 (file)
@@ -5,6 +5,7 @@
   "version": "0.1.0",
   "devDependencies": {
     "basic-auth": "^1.0.0",
+    "ffi": "2.0.0",
     "formidable": "1.0.16",
     "graceful-fs": "3.0.5",
     "mocha": "2.1.0",