Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
tests for .init method
Browse files Browse the repository at this point in the history
  • Loading branch information
eljefedelrodeodeljefe committed Nov 30, 2015
1 parent dbcdd02 commit d4e7a35
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/node-cpython.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,12 @@ test('Ncpy.initialize / Ncpy.finalize', function (t) {
t.pass('initialize and finalize test is okay,q when no segfault or expection is thrown')
})

test('Ncpy.runString', function (t) {
t.plan(1)
t.pass()
test('Ncpy.init and default options', function (t) {
t.plan(3)
var ncpy = require('../')
t.equal(ncpy.opts.version, '2.7', 'Default version (w/o calling constructor explictely) is 2.7')
var ref1 = ncpy.init({version: '2.7'})
t.equal(ref1.opts.version, '2.7', 'Version (w/ calling constructor explictely) is 2.7')
var ref2 = ncpy.init({version: '3.x'})
t.equal(ref2.opts.version, '3.x', 'Version (w/ calling constructor explictely) is 3.x')
})

0 comments on commit d4e7a35

Please sign in to comment.