Skip to content

Commit

Permalink
fixed test file
Browse files Browse the repository at this point in the history
  • Loading branch information
abarnhard committed Aug 22, 2014
1 parent 1507c08 commit 8e855b4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/unit/treasure.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
/* jshint expr:true */
/* global describe, it, before, beforeEach */

'use strict';

var expect = require('chai').expect,
Treasure = require('../../app/models/treasure'),
Mongo = require('mongodb'),
dbConnect = require('../../app/lib/mongodb'),
cp = require('child_process'),
db = 'treasure-map-test',
oid = '000000000000000000000002',
obj = {name:['Rubies'], difficulty:['1'], order:['4'], loc:['Unknown', '0', '0'], tags:['tag1, tag2'], photos:[], hints:['hint 1', 'hint 2']};

describe('Treasure', function(){
before(function(done){
dbConnect(db, function(){
done();
});
});

beforeEach(function(done){
cp.execFile(__dirname + '/../scripts/clean-db.sh', [db], {cwd:__dirname + '/../scripts'}, function(err, stdout, stderr){
done();
});
});

describe('constructor', function(){
it('should create a new Person object', function(){
Expand Down

0 comments on commit 8e855b4

Please sign in to comment.