From 744576032304bfc7018c6cf22e09dee28a9bd09e Mon Sep 17 00:00:00 2001 From: sqrtofsaturn Date: Fri, 22 Apr 2016 11:59:27 -0700 Subject: [PATCH] v2.1.1 fix tests --- package.json | 4 ++-- test/search-device-spec.coffee | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 55ef3e0..a3d5ccc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshblu-core-task-search-device", - "version": "2.1.0", + "version": "2.1.1", "description": "Search for devices, using the unstoppable Meshblu CORE", "main": "index.js", "scripts": { @@ -26,7 +26,7 @@ "chai-subset": "^1.2.0", "coffee-coverage": "^0.7.0", "istanbul": "^0.4.1", - "meshblu-core-datastore": "^2.3.1", + "meshblu-core-datastore": "^4.0.0", "mocha": "^2.3.4", "mocha-istanbul": "^0.2.0", "moment": "^2.10.6", diff --git a/test/search-device-spec.coffee b/test/search-device-spec.coffee index 4a37503..e87ac26 100644 --- a/test/search-device-spec.coffee +++ b/test/search-device-spec.coffee @@ -9,11 +9,12 @@ describe 'SearchDevice', -> @auth = uuid: 'archaeologist' @uuidAliasResolver = resolve: (uuid, callback) => callback(null, uuid) + database = mongojs 'meshblu-core-task-search-device', ['devices'] @datastore = new Datastore - database: mongojs('meshblu-core-task-search-device') + database: database collection: 'devices' - @datastore.remove done + database.devices.remove done beforeEach -> @sut = new SearchDevice {@datastore, @uuidAliasResolver}