UNPKG

mongojs

Version:

Easy to use module that implements the mongo api

21 lines (18 loc) 912 B
var mongojs = require('../') var test = require('./tape') test('mongojs exports', function (t) { t.ok(mongojs.Binary, 'Expect Binary type to be exported') t.ok(mongojs.Code, 'Expect Code type to be exported') t.ok(mongojs.DBRef, 'Expect DBRef type to be exported') t.ok(mongojs.Double, 'Expect Double type to be exported') t.ok(mongojs.Long, 'Expect Long type to be exported') t.ok(mongojs.NumberLong, 'Expect NumberLong type to be exported') t.ok(mongojs.MinKey, 'Expect MinKey type to be exported') t.ok(mongojs.MaxKey, 'Expect MaxKey type to be exported') t.ok(mongojs.ObjectID, 'Expect ObjectID type to be exported') t.ok(mongojs.ObjectId, 'Expect ObjectId type to be exported') t.ok(mongojs.Symbol, 'Expect Symbol type to be exported') t.ok(mongojs.Timestamp, 'Expect Timestamp type to be exported') t.ok(mongojs.Decimal128, 'Expect Decimal128 type to be exported') t.end() })