Skip to content

Commit

Permalink
v2.1.1 fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sqrtofsaturn committed Apr 22, 2016
1 parent e773895 commit 7445760
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -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",
Expand Down
5 changes: 3 additions & 2 deletions test/search-device-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 7445760

Please sign in to comment.