Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (21 sloc) 0.774 kB
vows = require 'vows'
assert = require 'assert'
path = require 'path'
vows
.describe('connection')
.addBatch
'Connection':
topic: require '../src/nosqlite'
'should have default path': (nosqlite) ->
assert.equal nosqlite.path, path.resolve(__dirname, '..', 'data')
'without options':
topic: (nosqlite) ->
return new(nosqlite.Connection)()
'should be successful': (topic) ->
assert.equal topic.path, path.resolve(__dirname, '..', 'data')
'with options':
topic: (nosqlite) ->
return new(nosqlite.Connection) path.resolve(__dirname, 'fixtures')
'should be successful': (topic) ->
assert.equal topic.path, path.resolve(__dirname, 'fixtures')
.export(module)
Jump to Line
Something went wrong with that request. Please try again.