Skip to content

Commit

Permalink
added license
Browse files Browse the repository at this point in the history
  • Loading branch information
winfinit committed Feb 17, 2016
1 parent a9f5d8f commit 5d5cf3e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
30 changes: 30 additions & 0 deletions bugs/190.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const mongoose = require('mongoose')
const mockgoose = require('../mockgoose')

mockgoose( mongoose )

// Create the mongoose connection on init
before(function(done) {
mongoose.connect('mongodb://example.com/TestingDB', function(err) {
done(err)
})
});

// Close the fake connection after all tests are done
after(function(done) {
console.log('Closing') // Shows in console (always)
mongoose.connection.close(function() {
console.log('Closed') // Also. always shows in console
done()
})
})


describe('Foobar', function () {
describe('.createFoo', function () {
it( 'Creating foo with no data', function( done ) {
expect( null ).to.not.equal( null );
done();
})
});
});
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mockgoose",
"description": "Mockgoose is an in memory database mock to allow for testing of applications that rely on Mongoose.",
"version": "5.3.0",
"version": "5.3.2",
"author": {
"name": "Anthony McCormick",
"email": "anthony.mccormick AT gmail.com"
Expand Down Expand Up @@ -33,7 +33,7 @@
},
"dependencies": {
"debug": "2.2.0",
"mongodb-prebuilt": "^4.5.4",
"mongodb-prebuilt": "^4.5.5",
"portfinder": "https://github.com/winfinit/node-portfinder.git",
"rimraf": "^2.5.1"
},
Expand All @@ -47,5 +47,6 @@
},
"repository": "mccormicka/Mockgoose",
"homepage": "https://github.com/mccormicka/Mockgoose",
"readmeFilename": "README.md"
"readmeFilename": "README.md",
"license": "MIT"
}

0 comments on commit 5d5cf3e

Please sign in to comment.